lisa_hermann_1
12 years agoNew Contributor
Problem comparing documents
I have the WordDocs script extension installed and am attempting to to compare documents using the following:-
ComparisonResult=WordDocs.Compare(doc1,doc2,1)
If doc1 and doc2 have the same file name (but are in different directories) the result is always true regardless of the document contents. However, if I rename one of the documents the comparison works as expected (true if the document contents are the same, false if different).
For example
doc1=C:\\olddocs\\test1.docx
doc2=c:\\newdocs\\test1.docx
will always return true
but if I rename doc1 to c:\\olddocs\test2.docx it works as I expect
I can work round this but has anyone else seen the issue and is there a fix please?