Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for In-depth document comparison
Atir Tahir
Atir Tahir

Posted on

     

In-depth document comparison

Do you want to compare documents with all small details? Have a look at the following .NET code:

Comparercomparer=new.Comparer(sourcePath);comparer.Add(targetPath);CompareOptionscompareOptions=newCompareOptions();StyleSettingschangedStyleSettings=newStyleSettings();changedStyleSettings.HighlightColor=Color.Red;compareOptions.ChangedItemStyle=changedStyleSettings;comparer.Compare(@"D:\result.docx",compareOptions);
Enter fullscreen modeExit fullscreen mode

This is not it. This document comparison API provides a lot of comparison options and support for multiplefile formats. The changes detection algorithms used byGroupDocs.Comparison allows to detect changes in different document parts and blocks.
From style changes (e.g. italic, bold, highlighted text) to the item insertion or deletion, everything will be compared.
Have a look at the following screenshot:
Alt Text

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software developer and evangelist.
  • Location
    Pakistan
  • Education
    BS Computer Science
  • Work
    Developer Evangelist at GroupDocs
  • Joined

More fromAtir Tahir

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp