Revision marks not supported and some list formatting is lost


#1

Dear Sir/Madam,<?xml:namespace prefix = o ns = "urnTongue Tiedchemas-microsoft-comSurprisefficeSurpriseffice" /><oStick out tongue></oStick out tongue>

<oStick out tongue></oStick out tongue>

I'm evaluating Aspose.Word and experiencing some problems<oStick out tongue></oStick out tongue>

<oStick out tongue></oStick out tongue>

I open a document (see Children.doc) and save it to Test.doc (see Test.doc) using the following code:<oStick out tongue></oStick out tongue>

<oStick out tongue></oStick out tongue>

Aspose.Word.Word oWord =new Word();<oStick out tongue></oStick out tongue>

Document srcDoc = oWord.Open("C:\\Children.doc");<oStick out tongue></oStick out tongue>

srcDoc.Save("C:\\Test.doc",SaveFormat.FormatDocument);<oStick out tongue></oStick out tongue>

Then I open Test.doc in Word again. Changes are noticable. Formatting is damaged, Word fields are "doubled". <oStick out tongue></oStick out tongue>

<oStick out tongue></oStick out tongue>

My questions are:<oStick out tongue></oStick out tongue>

· why does this happen and how to fix it ?<oStick out tongue></oStick out tongue>

· is it possible to update fields (the ones you can find in Children.doc) with values from code (using Aspose objects) ?<oStick out tongue></oStick out tongue>


#2

Hi Alex,<?xml:namespace prefix = o ns = "urnTongue Tiedchemas-microsoft-comSurprisefficeSurpriseffice" /><oStick out tongue></oStick out tongue>

<oStick out tongue> </oStick out tongue>

I’ve found what is causing most of the problems. You have Track Changes turned on for the document. There are some revision marks in the document and Aspose.Word does not support revision marks. It just treats them as normal text, therefore you see all text that was deleted and changed in previous revisions. If you can, then Accept All Changes so revision marks will be removed from the document, after that no doubling up and no deleted text will appear in the document.<oStick out tongue></oStick out tongue>

<oStick out tongue> </oStick out tongue>

Please note that left margin of some paragraphs is still wrong. This is somehow related to list formatting and I cannot resolve it now because it works fine in all my other test documents. I recommend you just reapply formatting in your original document, it should help. Just open the template document, move the left paragraph margin back and forth and save the document.


#3

List formatting is no longer lost when copying between documents in Aspose.Word 2.0.4.


#4

Revisions are supported and there is Document.AcceptAllRevisions available in Aspose.Word 2.2.3.