We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Disable Track Changes & Get / Set Insertions Deletions Revisions in Word Document using C# .NET

Hi Team,
Please some one help on How to retrieve track changes if we disable track changes of the documents.
Revisions, IsDeletedRevision, IsInsertRevision all the methods are tracking when track changes enabled.
Please let me know the approach to get revisions when I disable the track changes.

Thanks,
Venkat

@ravi.g64,

You can Compare the original source document and the revised document and the resultant document will contain the revisions. For example, please check:

Document doc1 = new Document();
DocumentBuilder builder1 = new DocumentBuilder(doc1);
builder1.Writeln("Some content");            

Document doc2 = (Document)doc1.Clone(true);
DocumentBuilder builder2 = new DocumentBuilder(doc2);
builder2.MoveToDocumentEnd();
builder2.Writeln("This is new content which is not present in 'doc1' and will be detected as Deletion Revision as if someone has deleted it from 'doc1'");
          
doc2.Compare(doc1, "Some Author", DateTime.Now);

doc2.Save("E:\\Temp\\20.1.docx");

Thank you.
It’s works for me.