Show results of comparison as a Word Track Changes
Leave feedback
On this page
GroupDocs.Comparison allows you to 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 Word Track Changes option is false
. Follow these steps to turn on the Word Track Changes:
- 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 WordTrackChanges property to
true
; - Call the Comparer method. Specify the CompareOptions object from the previous step.
The following code snippet shows how to disable the display of revisions:
using (Comparer comparer = new Comparer(sourcePath))
{
comparer.Add(targetPath);
CompareOptions options = new CompareOptions() {WordTrackChanges = true};
comparer.Compare(resultPath, options);
}
The result is as follows:
WordTrackChanges true |
---|
WordTrackChanges false |
---|
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.