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

[TSVN] Re: 1.2.2 and diff-ing Word files

From: Ronny Voelker <Ronny.voelker_at_elaxy.com>
Date: 2005-09-19 11:55:49 CEST

Kalin KOZHUHAROV <kalin <at> thinrope.net> writes:

>
> Rainer Müller wrote:
> > Kalin KOZHUHAROV wrote:
> >
> >>I just "discovered" that one can diff Word files, but unfortunately
> >>not very well now.
> >>If I try to see a diff between two versions (say right-click from
> >>the Log dialog), they are aparently loaded, compared, the results
> >>shown on the screen for a few miliseconds and then the two files are
> >>closed.
> >>Is there a quick fix/workaround for this or we have to wait for
> >>better ideas?
> >
> >

> The application itself stays open, but there are no open files.

> To spice the things up I use a Japanese Word 2000 (9.0.2812) ...

I use a German Word 2000 and a German Word XP and I think, I've found the cause
of this problem:

There is a change in the behaviour of the Document.Change method between Word
2000 and Word XP.
Word XP (by default) creates a new document, which contains the result of the
diffing.
Word 2000 instead incorporates change markers directly into the base document.
The base document in diff-doc.vbs is 'destination' - and 'destination' is
closed at the end of the script. That means, that with Word 2000 the document
containing the result of the diff is closed.

So, if I remove the line 'destination.Close' from diff-doc.vbs, the script works
with my Word 2000 (but does no longer work with Word XP).

Btw. in Word XP Document.Change has some additional (optional) arguments. One of
this arguments (CompareTarget) defines whether a new document is created or not.
But the documentation seems to lie about its default value ;).

Ronny

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Sep 19 12:10:59 2005

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