Hi,
I am using Aspose.Words 5.2.1, .net version. I have attached a Wordml document which has a few headings and sub headings in it. it also has track changes turned on. When I open this document using aspose.words and subsequently save it back as wordml it seems to lose some of the formatting infromation surrounding the headings. If you open the aspose.words saved version in Word, it thinks that there are a bunch of formatting changes.
The problem seems to be that the following WordML for each Heading from the original doc (the one attached here)
<w:pPr>
<w:pStyle w:val="FirstLevelHeader"/>
<w:listPr>
<w:ilvl w:val="0"/>
<w:ilfo w:val="21"/>
<wx:t wx:val="1." wx:wTabBefore="0" wx:wTabAfter="180"/>
<wx:font wx:val="Arial"/>
<aml:annotation aml:id="0" aml:author="stuart" aml:createdate="2008-07-22T13:27:00Z" w:type="Word.Numbering" w:original="%1:1:0:."/>
</w:listPr>
<w:ind w:left="0" w:first-line="0"/>
<w:rPr>
<w:sz w:val="22"/>
<w:sz-cs w:val="22"/>
</w:rPr>
</w:pPr>
Is changed as per the following after saving as WordML via aspose.words:
<w:pPr>
<w:pStyle w:val="FirstLevelHeader"/>
<w:listPr>
<w:ilvl w:val="0"/>
<w:ilfo w:val="21"/>
<wx:t wx:val="1." wx:wTabBefore="0" wx:wTabAfter="0"/>
<wx:font wx:val="Arial"/>
<aml:annotation aml:id="0" aml:author="stuart" aml:createdate="2008-07-22T13:27:00Z" w:type="Word.Numbering" w:original="."/>
</w:listPr>
<w:ind w:left="0" w:first-line="0"/>
<w:rPr>
<w:sz w:val="22"/>
<w:sz-cs w:val="22"/>
</w:rPr>
</w:pPr>
As you can see, the wx:wTabAfter attribute of the wx:t element is now set to 0 and the w:original attribute of the aml:annotation element is set to the final character of the initial value. In this case the initial value was “%1:1:0:.” and the aspose.Words saved value is only “.”
These changes make Word display unwanted track changes markers. I need to be able to generate a “clean” document with headings, i.e. have aspose export the heading WordML verbatim instead of making these changes.
Thanks,
Stu