Compare Word: Showing un-changed paragraph as change

We are comparing 2 documents with the Nuget package of aspose Word, While comparing 2 documents it is showing changes on unchanged/similar paragraphs in the Word file. We are attaching both Word files for your reference and we have also attached a comparison file we got from Aspose and Screenshots in the attachment.
BaseFile_New (2).docx (53.8 KB)

UplodedFile_New (2).docx (36.0 KB)
comparedFile_New.docx (69.0 KB)

Offline file:

Base file:

Compared Doc file from aspose:

@ttinwala With the latest 24.8 version and the following code I get InvalidCastException on my side:

Document v1 = new Document(@"C:\Temp\v1.docx");
v1.AcceptAllRevisions();
Document v2 = new Document(@"C:\Temp\v2.docx");
v2.AcceptAllRevisions();
v1.Compare(v2, "AW", DateTime.Now);
Console.WriteLine(v1.HasRevisions);
v1.Save(@"C:\Temp\out.docx");

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27326

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@ttinwala I have retested the scenario with BaseFile_New (2).docx and UplodedFile_New (2).docx and managed to reproduce the problem.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27327

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

The issues you have found earlier (filed as WORDSNET-27326) have been fixed in this Aspose.Words for .NET 24.9 update also available on NuGet.

@alexey.noskov
it is still not working for some scenarios after updating to [Aspose.Words for .NET 24.9 update] Aspose.Words for .NET 24.9 update
Here are files i have used

BaseFile.docx (58.3 KB)

InputFile.docx (41.1 KB)

Output File(compared file from aspose):
Aspose_Compare_Output_File.docx (75.3 KB)

i am attaching some screen shots

@ttinwala There is another issue that has been reported in this thread WORDSNET-27327, which is not resolved yet. Please wait until the issue is resolved. We will keep you updated and let you know once it is fixed.

both are same issues,

WORDSNET-27326 ---- Status : Closed
WORDSNET-27327 ---- Status : New

I also got reply from @aspose.notifier

@ttinwala No, they are not.

WORDSNET-27326 - InvalidCastException is thrown upon comparing document.
WORDSNET-27327 - Compare result does not match MS Word output.

I have never faced this issue
WORDSNET-27326 - InvalidCastException is thrown upon comparing document.

@ttinwala The issue has been reproduced with your documents.

1 Like