I am opening my generated WordML document and wish to make some adjustments using Aspose.Words 6.1. I then save the document back as WordML. The same symptoms exist if I save as Doc or Docx.
This is the code I am using to open/save:
Dim OutputFileName As String = "C:\doc.xml"
Dim asp As New Aspose.Words.Document(OutputFileName)
asp.Save("C:\doc1.xml", Aspose.Words.SaveFormat.WordML)
In my original document (doc.xml) I have a number of references to other parts of the document, e.g:
<w:t>*<w:fldSimple w:instr="REF FoundID1 \r \h" />*</w:t>
(The underscores are there so I could find it easily)
In doc1.xml the <w:fldsimple />
has been removed
<w:t>__</w:t>
The bookmarks being referred to exist in both documents.
Is there anything obvious that I am probably doing wrong that is causing these references to bookmarks to disappear?
Thanks in advance.