We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

When comparing limits of revisions are lost

Hi,

I compare two documents.

Document Doc1 = new Document(firstFileName);<o:p></o:p>

Document Doc2 = new Document(fileName); <o:p></o:p>

<o:p> </o:p>

Doc1.Compare(Doc2, “author”, DateTime.Now);<o:p></o:p>

<o:p> </o:p>

for (int index = 0; index <
Doc1.Revisions.Count; index++)<o:p></o:p>

{<o:p></o:p>

switch
(Doc1.Revisions[index].RevisionType)<o:p></o:p>

{<o:p></o:p>

case RevisionType.Insertion:<o:p></o:p>


revisionAccept.Add(Doc1.Revisions[index]);<o:p></o:p>

break;<o:p></o:p>

case RevisionType.Deletion:<o:p></o:p>


revisionReject.Add(Doc1.Revisions[index]);<o:p></o:p>

break;<o:p></o:p>

} <o:p></o:p>

}

foreach (Revision revision in revisionReject)<o:p></o:p>

revision.Reject();

foreach (Revision revision in revisionAccept)<o:p></o:p>

revision.Accept();<o:p></o:p>

<o:p> </o:p>

Doc1.Save(tempFileName);


After comparing limits of revisions are lost. Also the comment of the second user (Peter) is lost. What not so I do?


It is my mistake or defect of aspose?

Hi there,


Thanks for your inquiry. Could you please attach your input Word documents here for testing? We will investigate the issue on our side and provide you more information.

Hi there,

Thanks for sharing the documents. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15320. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-15320) have been fixed in this Aspose.Words for .NET 21.9 update.