Show Revisions
Leave feedback
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:
- Instantiate the Comparer object. Specify the source file path or stream.
- Call the Add method. Specify the target file path or stream.
- Instantiate the CompareOptions object. Set the ShowRevisions property to
false
. - Call the Comparer method. Specify the CompareOptions object from the previous step.
The following code snippet shows how disable the display of revisions:
using (Comparer comparer = new Comparer(sourcePath))
{
comparer.Add(targetPath);
CompareOptions options = new CompareOptions() {ShowRevisions = false};
comparer.Compare(resultPath, options);
}
The result is as follows:
Closed state | Open state |
---|---|
Disable display Revisions |
---|
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.