Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Feb 06, 2026 9:20 am

While comparing 2 documents, if the form fields have differences( in the first document check box field is unchecked and in the second document, check box field is checked), then the changes are not tracked.
Below is the code used

Document doc1 = new Document();
doc1.loadFromFile("D:\\doc1.rtf");

//Load the other Word document
Document doc2 = new Document();
doc2.loadFromFile("D:\\doc2.rtf");

CompareOptions co = new CompareOptions();
co.setIgnoreFormatting(true);
doc1.compare(doc2, "Author",co);

doc1.saveToFile("D:\\Compare1.docx", FileFormat.Docx_2019);

suma_ar8
 
Posts: 9
Joined: Fri Jun 21, 2024 4:28 am

Fri Feb 06, 2026 10:31 am

Hello,

Thank you for your feedback.
I have reproduced the issue you encountered and logged it into our issue tracking system under ID SPIREDOC-11824. We will notify you promptly once the issue is resolved and a new version is available.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3004
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron