copy header and footer between word documents in c#

48 Views Asked by At

I try copy headers and footer from one word document to other programmatically in c# by Open-XML-SDK.

I found this: Copy Header and Footer to all other Documents OpenXML. It works fine if is only one header/footer defined in source file and destination file has only one section. If source file has defined different header/footer on first page and destination file has more sections, it not work correctly. I am new in word document manipulation by Open-XML-SDK. Can anyone help me ?

Thank you.

0

There are 0 best solutions below