hi,
I have a basic docx file that contains a header and footer. I have another docx that contains merge fields and a signature tag placeholder. The merge fields are replaced by doing a performMerge and the signature tag placeholder is replaced with an InlineImage. The contents of the header/footer docx are then replaced with the content from the merged docx. When I go to open the document Word complains that the file is corrupt and cannot be opened. Details point to
Location: Part: /word/document.xml, Line: 1, Column: 0
If I allow Word to recover the document it opens fine. Also if I process each docx separately they open fine. Seems to be something going screwy with replacing the content of one doc with another. I am not using mergedocx. If nothing obvious in the attached code I am wondering if mergedocx would help.
Any assistance appreciated.
thanks,
Ralph