Hi Minh,
Thanks for your inquiry. To compare two word files, we suggest you to use the Document.Compare method. It compares one document with another document producing changes as number of edit and format revisions Revision( tracked change in a document node or style). Please Use latest version of Aspose.Words for .NET and try following code. Hope this helps you.
Document doc1 = new Document(MyDir + @"Original+Doc.docx");
Document doc2 = new Document(MyDir + @"Formatted+Doc.docx");
doc2.Compare(doc1, "ah", DateTime.Now);
NodeCollection runs = doc2.GetChildNodes(NodeType.Run, true);
foreach (Run run in runs)
{
if (run.IsFormatRevision)
{
Aspose.Words.Font font = run.Font;
bool isBold = font.Bold;
Console.WriteLine(run.Text + " --> " + isBold);
}
}
For more information, please visit How to Compare Two Word Documents. If you still face problem, please create stand-alone application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing. We will then provide you more information on this.