1.docx (36.1 KB)
3.docx (44.9 KB)
Hi Team,
I am using Version 23.2 to compare attached documents. below code I am using for comparing. After compare I get duplicate comments in compare document. “98.docx” are my compare file.
98.docx (48.8 KB)
Aspose.Words.Document document1 = new Aspose.Words.Document(@Path + "1.docx");
Aspose.Words.Document document2 = new Aspose.Words.Document(@Path + "3.docx");
Aspose.Words.Comparing.CompareOptions _asposeCompareOption = new Aspose.Words.Comparing.CompareOptions();
_asposeCompareOption.IgnoreFormatting = true;
_asposeCompareOption.IgnoreHeadersAndFooters = true;
_asposeCompareOption.IgnoreComments = true;
document1.Compare(document2, "d", DateTime.Now, _asposeCompareOption);
document1.Save(@Path + "98.docx");