Agamand The True
Agamand The True

Reputation: 832

Microsost Office Interop Word - enable/disable track changes in C#

How do I enable or disable Track Changes option in C#.

Upvotes: 4

Views: 6587

Answers (3)

AtmiyaDas2014
AtmiyaDas2014

Reputation: 300

Enable Track Changes :

wordDocument.TrackRevisions = true;

Disable Track Changes :

wordDocument.TrackRevisions = false;

Upvotes: 1

Steve
Steve

Reputation: 216303

I think you are looking for this property

Document.TrackRevisions

as from MSDN

This property returns True if changes are tracked in the specified document, and False if they are not. Set the property value to True or False to enable or disable the functionality.

Upvotes: 8

Shakti Prakash Singh
Shakti Prakash Singh

Reputation: 2533

Set

wordDocument.TrackRevisions = true;

Upvotes: 3

Related Questions