Render tracked changes
GroupDocs.Viewer does not render tracked changes of Word Processing documents by default. If you want to see tracked changes in your rendering result, use WordProcessingOptions.RenderTrackedChanges property of HtmlViewOptions (or JpgViewOptions, or PngViewOptions, or PdfViewOptions) class and pass it to Viewer object constructor.
Follow below steps to render WordProcessing document with tracked changes.
- Initialize the HtmlViewOptions object.
- Set WordProcessingOptions.RenderTrackedChanges to true.
- Pass HtmlViewOptions object to View method.
The following code sample shows how to render a Word document including tracked changes.
using (Viewer viewer = new Viewer("sample.docx"))
{
HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
viewOptions.WordProcessingOptions.RenderTrackedChanges = true;
viewer.View(viewOptions);
}
More resources
View Word Files Online
Along with full-featured .NET library we provide simple but powerful free online Apps. View DOC, DOCX, RTF, and ODT files online with GroupDocs Viewer App.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Viewer for .NET examples, plugins, and showcase
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET MVC UI Example
- Document Viewer for .NET App WebForms UI Modern Example
- Document Viewer for Java App Dropwizard UI Modern Example
- Document Viewer for Java Spring UI Example