Is there a good way to see if two documents are the same using the word interop?
I have tried using something like:
Word.Document tempDoc = app.CompareDocuments(document1, document2);
My issue is that tempDoc is not null if they are the same, so I'm not sure how to use this result to determine whether the documents are the same.
Thanks in advance!
The document it returns is a document with track changes turned on. So all you have to do is see if there ARE any changes. So:
See:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word._application.comparedocuments.aspx