WordML: w:hdr does not insert into existing document

M

Michael

Trying to insert a WordML fragment with a w:hdr into a document. If
the document is brand new and doesn't contain any content, it works
beautifully. However, if there is any content including just section
breaks, the InsertXML method will fire without an error but the
content is not inserted into the header.

In my research, I've come across mention that the w:sectPr (where
w:hdr is nested) can be treated as an optionally interpreted by Word.
Anyone else observe this or have a workaround?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top