'Adding header to docx using openxml
I'm trying to add a new header (manually by using openxml code) to docx (office 2010) document which already contains a header (header1.xml). I tried to do it with openxml by adding a file named myheader.xml with only one paragraph. When opening the document at word, the content of header1 is presented in different position (2 lines lower) than it was before.
When I deleted the paragraph, (only <w:hdr> </w:hdr> with the relevant name spaces) the content of header1 was still presented in a different potion ( only 1 line lower)
Is there a solution for this issue?
Solution 1:[1]
I suggest you check out this thread here: Add Header and Footer to an existing empty word document with OpenXML SDK 2.0
I think it will this solve this problem as, its a little more involed that just adding a paragraph, but not much.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
