I am trying to add a new header (manually using openxml code) to a docx document (office 2010) that already contains a header (header1.xml). I tried to do this with openxml, adding a file called myheader.xml with just one paragraph. When you open a document in a word, the contents of heading 1 are displayed in a different position (2 lines lower) than before.
When I deleted the paragraph (only <w:hdr> </w:hdr> with the corresponding namespaces), the contents of heading 1 were still presented in another potion ( only 1 line below)
Is there a solution for this problem?
source share