[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: merge-docx.js script broken?

From: Jared Silva <jayrod_at_gmail.com>
Date: Tue, 30 Dec 2008 11:43:45 -0500

First, I am out of the loop when it comes to merge-doc* development,
because I both do not merge Word documents using TortoiseSVN (I diff
often though) and because it is difficult to keep track of all the
caveats between the different versions of Word.

Is there an older version of the script that worked for you? What
tends to happen with the diff-doc* and merge-doc* scripts is people
make changes that "fix" a bug for their version of Word (I use 2003)
but breaks the script for others using a different version of Word.
You can find previous versions here:
http://tortoisesvn.tigris.org/source/browse/tortoisesvn/trunk/contrib/other/diff-scripts/

Can you please convert the error information to English?

It appears the error is occurring in this area of the code:
// Merge into the "My" document
if (parseInt(word.Version) < 12)
{
        baseDoc.Compare(sMergedDoc);
} else {
        baseDoc.Merge(sMergedDoc);
}

Please replace the code above with the code below and tell us what
happens. This will not fix your problem, but it will help us find out
exactly what the problem is.
WScript.Echo("word.Version: " + word.Version);
WScript.Echo("Number(word.Version): " + Number(word.Version));
WScript.Echo("parseInt(word.Version): " + parseInt(word.Version));
WScript.Echo("parseFloat(word.Version): " + parseFloat(word.Version));
// Merge into the "My" document
if (parseInt(word.Version) < 12)
{
    WScript.Echo("if (parseInt(word.Version) < 12) == TRUE");
        baseDoc.Compare(sMergedDoc);
} else {
    WScript.Echo("if (parseInt(word.Version) < 12) == FALSE");
        baseDoc.Merge(sMergedDoc);
}

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=996080

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2008-12-30 17:43:54 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.