How to enable track changes of the word document

2017-03-21 07:41:43 Written by  support iceblue
Rate this item
(0 votes)

The track changes has been used to keep track of the every changes that made to the Word document. It helps to record every edit, insertion, deletion, or modification in a word document. We have demonstrated how to accept/reject the tracked changes on word document in C#. This article will show you how to enable track changes of the document.

Step 1: Create a new word document and load the document from file.

Document document = new Document();
document.LoadFromFile("Sample.docx", FileFormat.Docx2010);

Step 2: Enable the track changes.

document.TrackChanges = true;

Step 3: Save the document to file.

document.SaveToFile("Enable Trackchanges.docx", FileFormat.Docx2010);

Effective screenshot:

How to enable track changes of the word document

Full codes:

using Spire.Doc;
namespace EnableTrack
{
    class Program
    {
        static void Main(string[] args)
        {
            Document document = new Document();
            document.LoadFromFile("Sample.docx", FileFormat.Docx2010);
            document.TrackChanges = true;
         document.SaveToFile("Enable Trackchanges.docx", FileFormat.Docx2010);

        }
    }
}

Additional Info

  • tutorial_title: Enable track changes of the word document
Last modified on Tuesday, 30 April 2024 07:47