Word compare issue
I have recently installed the word compare extension on TC11 and i copied the example function from the website and input my paths so i could compare two of my letters. I've played about a lot with this however cannot seem to get it to work at all. I've changed locations of the document, tried different syntax however nothing works.
Could anyone point me in the right direction as to what i'm doing wrong.
//function from website
function Main ()
{
WordDocs.Compare("Y:\Compare\GGE002-1.docx", "Y:\Compare\GGE002-2.docx",2);
}
Yup... that's fairly simple to solve.
You're using the JScript/JavaScript function format. In that format, when doing file paths, the backslash character (\) in a string is used for other functionality. In order for it to resolve as an actual backslash, you need to double it up. Change your code to the following:function Main () { WordDocs.Compare("Y:\\Compare\\GGE002-1.docx", "Y:\\Compare\\GGE002-2.docx",2); }