H
Haydn
My application performs the following:
1. Get XML from document.
2. Transform it in some way.
3. Clear document.
4. InsertXML(transformed document) - including some tables.
5. Insert header and footer (using
Sections[1].Headers[wdHeaderFooterFirstPage]).
There are several problems here.
1. After step 4. Word has inserted a section break for me - I never asked
for one.
2. When I save the document as an XML document, the header and footer is not
saved.
3. When I save the document as a Word document (DOC), the header and footer
is saved.
4. When I delete the section break, my header is deleted too.
This is infuriating. Why does Word insert section breaks for me when I
don't want them? How do I stop it from doing this? Why does Word not save
my headers and footers in XML format but will in DOC format?
TIA,
Haydn
1. Get XML from document.
2. Transform it in some way.
3. Clear document.
4. InsertXML(transformed document) - including some tables.
5. Insert header and footer (using
Sections[1].Headers[wdHeaderFooterFirstPage]).
There are several problems here.
1. After step 4. Word has inserted a section break for me - I never asked
for one.
2. When I save the document as an XML document, the header and footer is not
saved.
3. When I save the document as a Word document (DOC), the header and footer
is saved.
4. When I delete the section break, my header is deleted too.
This is infuriating. Why does Word insert section breaks for me when I
don't want them? How do I stop it from doing this? Why does Word not save
my headers and footers in XML format but will in DOC format?
TIA,
Haydn