I’ve a problem while comparing 2 documents.
I get this result:
but the correct result should be:
If I try the same task with the Word compare function it works fine.
If I also open the document with Word (v7d.docx attached) and I save it then it’s work.
This is the code used to reproduce the problem:
Aspose.Words.Document doc6 = new Aspose.Words.Document($"c:\\test\\v6d.docx");
Aspose.Words.Document doc7 = new Aspose.Words.Document($"c:\\test\\v7d.docx");
doc6.TrackRevisions = false;
doc6.StopTrackRevisions();
doc6.AcceptAllRevisions();
doc7.TrackRevisions = false;
doc7.StopTrackRevisions();
doc7.AcceptAllRevisions();
doc6.Compare(doc7, "user", DateTime.Now);
doc6.Save($"c:\\test\\DocCompare - 6 vs 7.docx");
//v7d2.docx ---> document opened with Word and only saved with a different name
//v7d.docx to v7d2.docx
doc7 = new Aspose.Words.Document($"c:\\test\\v7d2.docx");
doc7.TrackRevisions = false;
doc7.StopTrackRevisions();
doc7.AcceptAllRevisions();
doc6.Compare(doc7, "user", DateTime.Now);
doc6.Save($"c:\\test\\DocCompare - 6 vs 7-2.docx");