Show Revisions

On this page


GroupDocs.Comparison allows you to compare and customize the display of revisions in the output document.

Revision is a collection of changes received when comparing documents using built-in Word tools.

By default, the display of revisions is enabled. To turn off the display of revisions, follow these steps:

  1. Instantiate the Comparer object. Specify the source file path or stream.
  2. Call the Add method. Specify the target file path or stream.
  3. Instantiate the CompareOptions object. Set the ShowRevisions property to false.
  4. Call the Comparer method. Specify the CompareOptions object from the previous step.

The following code snippet shows how disable the display of revisions:

using GroupDocs.Comparison;
using GroupDocs.Comparison.Options;
// ...

using (Comparer comparer = new Comparer("source.docx"))
{
    comparer.Add("target.docx");
    CompareOptions options = new CompareOptions() { ShowRevisions = false };
    comparer.Compare("result.docx", options);
}

The result is as follows:

Closed stateOpen state
Disable display Revisions

On this page