Forum Discussion

lisa_hermann_1's avatar
lisa_hermann_1
New Contributor
12 years ago

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?



 



 


  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Lisa,


     


    Our Support team has created this extension. Could you please contact them and ask them to modify it? Actually, if you are familiar with JScript, you can try debugging and modifying the extension on your computer. For this, you need to use the wcCode.js file located inside the extension. Refer to the "Creating Script Extensions - Basic Concepts" and"Debugging Script Extensions" articles for details.


     


    BTW, the WordDocs script extension is available here.


     

  • Thank you - I was able to modify the script extension but I have still logged a support issue