Skip to content

SyncfusionExamples/compare-word-documents-c-sharp

Repository files navigation

Compare Word documents in C#

This repository contains examples that illustrates how to compare two DOCX format documents and highlight the changes, such as insertions, deletions, and formatting, as tracked changes programmatically in C#. The .NET Word Library (DocIO) compares two Word documents with just few lines of code and also it does not require Microsoft Word application to be installed in the machine.

Key Features

  • Set Author and Date - Compare the two Word documents by setting the author and date for revisions to identify the changes.
  • Ignore format changes - Compare two Word documents by ignoring the format changes.

Compare Word documents in C#

.NET Word Library

The Syncfusion® DocIO is a .NET Word Library allows you to add advanced Word document processing functionalities to any .NET application and does not require Microsoft Word application to be installed in the machine. It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the document elements explicitly and perform necessary manipulation.

  • Support to create Word document from scratch.
  • Support to open (read), modify and save existing Word documents.
  • Advanced Mail merge support with different data sources.
  • Ability to create or edit Word 97-2003 and later version documents (DOCX), and convert them to commonly used file formats such as RTFWordMLTXTHTML and vice versa.
  • Ability to export a Word document as an Image and PDF
  • Ability to merge and split Word documents.
  • Support to compare two DOCX format documents.
  • Ability to create and manipulate chartsShapes, and Group shape in DOCX and WordML format documents.
  • Ability to read and write Built-In and Custom Document Properties.
  • Ability to find and replace text with its original formatting.
  • Ability to insert Bookmarks and navigate corresponding bookmarks to insert, replace, and delete content.
  • Support to insert and edit the form fields.
  • Support to protect the document to restrict access to the elements present within the document.
  • Ability to encrypt and decrypt Word documents.
  • Support to insert and extract OLE objects.
  • Support to run the DocIO applications in multi-thread and its thread safe.

Compatible Microsoft Word Versions

  • Microsoft Word 97-2003
  • Microsoft Word 2007
  • Microsoft Word 2010
  • Microsoft Word 2013
  • Microsoft Word 2016
  • Microsoft Word 2019
  • Microsoft 365

Supported File Formats

How to run the examples

  • Download this project to a location in your disk.
  • Open the solution file using Visual Studio.
  • Rebuild the solution to install the required NuGet packages.
  • Run the application.

Resources

Support and feedback

For any other queries, reach our Syncfusion® support team or post the queries through the community forums.

Request new feature through Syncfusion® feedback portal.

License

This is a commercial product and requires a paid license for possession or use. Syncfusion's licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a licnense here or start a free 30-day trial here.

About

This repository contains the examples of comparing Word documents in C# using Syncfusion .NET Word library

Topics

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages