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

Free Support Forum - aspose.com

Getting Extra Revisions When Comparing Two Word Documents Which Contain TextBox With Some Changes


We are using Aspose. Word compare API which compares two word documents and generate a difference document. The documents under comparison consists of just one text box which has some text. We just changes that text content from “Larry Ellison, CEO of Oracle” to “Lawrence Ellison, CEO of Oracle”. When we compared these two documents using Aspose compare API, we got following revisions:

1. TextBox deleted
2. TextBox inserted
3. “Larry Ellison, CEO of Oracle” deleted.
4. “Lawrence Ellison, CEO of Oracle” inserted.

But MS word generates just two revisions.

1. “Larry” deleted
2. “Lawrence” inserted.

The code used is given below

Document doc1=new Document(“textbox sample.docx”);
Document doc2=new Document(“textbox modified.docx”);
doc1.save(“Aspose Difference Document.docx”);

Could you please look into this issue and provide us some solution?

The sample documents are attached with this post.
Also sharing a comparison snapshot where left hand side document is Aspose generated and right hand side is MS Word generated.

Looking forward to your reply.


Hi Manisha,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 16.8.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-14207. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-14207) have been fixed in this Aspose.Words for .NET 16.12.0 update and this Aspose.Words for Java 16.12.0 update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.