Hi
We are comparing two docs
We can loop through the Revisions collection
For a Insertion, how can we see what has changed e.g. been inserted
Doc 1 = The is the original
Doc 2 = The is the original also
How we can detect what the insertion was
Thanks
@david.hancock.imagef,
You can meet this requirement by using the Revision.ParentNode. Sample code is as follows:
Document doc1 = new Document(MyDir + @"Doc1.docx");
Document doc2 = new Document(MyDir + @"Doc2.docx");
doc1.Compare(doc2, "Awais", DateTime.Now);
doc1.Save(MyDir + @"Compared-18.1.docx");
Document doc = new Document(MyDir + @"Compared-18.1.docx");
foreach (Revision rev in doc.Revisions)
{
if (rev.RevisionType != RevisionType.StyleDefinitionChange)
Console.WriteLine(rev.RevisionType + " | " + rev.ParentNode.ToString(SaveFormat.Text));
}