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.

Wed Sep 22, 2021 7:26 am

I have a problem with invalid comparison between docx documents.
I compared with Spire two docx documents: before_changes.docx and after_changes.docx. Result has been produced in spire_result.docx
There is one major change in this two files: deleted word "ДИРЕКЦИЯ" in after_changes.docx
But in spire_result.docx you can see changes in style in every string, despite there were no such changes in after_changes.docx
We compared changes in before_changes.docx and after_changes.docx with Microsoft Word in-app tool, with all enabled options, including formatting. The result is correct, as expected.
The Microsoft Word comparison result is in ms_word_result.docx

Comparison code^
Code: Select all
        public void CompareDocuments(byte[] firstContent, byte[] secondContent, string author = "default_author")
        {
            Document firstDoc = new();
            Document secondDoc = new();
            using (MemoryStream resultStream = new(), firstStream = new(firstContent), secondStream = new(secondContent))
            {
                firstDoc.LoadFromStream(firstStream, Spire.Doc.FileFormat.Auto);
                secondDoc.LoadFromStream(secondStream, Spire.Doc.FileFormat.Auto);
                firstDoc.Compare(secondDoc, author, DateTime.Now);
                firstDoc.SaveToStream(resultStream, Spire.Doc.FileFormat.Docx);
            }
        }


Environment: ОС - Windows 10 64bit , MS Word 2016
Version of product: Spire.Office 6.7.0

burz00m21
 
Posts: 12
Joined: Thu Sep 16, 2021 12:20 pm

Wed Sep 22, 2021 9:21 am

Hello,

Thanks for your inquiry.

I have reproduced your issue and logged it in our bug tracking system with the ticket SPIREDOC-6718. If there are any updates, we will let you know. Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Oct 28, 2021 9:48 am

Hello,

Thanks for your patience.

Glad to inform you that we have released Spire.Office Platinum(Hotfix) Version:6.10.3 which fixes the issue of ticket SPIREDOC-6718.

Please download the new version from the following links for testing.

Our website: https://www.e-iceblue.com/Download/down ... t-now.html
NuGet:
https://www.nuget.org/packages/Spire.Office/6.10.3
https://www.nuget.org/packages/Spire.Of ... ore/6.10.3

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Fri Oct 29, 2021 5:42 am

Thanks it worked!

burz00m21
 
Posts: 12
Joined: Thu Sep 16, 2021 12:20 pm

Fri Oct 29, 2021 5:53 am

Hello,

Glad to hear that!

If you have any problems, please feel free to contact us and we will assist you.

Have a nice day!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Doc