# Re: Error diffing word document

From: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Fri, 2 May 2014 12:07:52 -0500

On Fri, May 2, 2014 at 11:47 AM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> On 02.05.2014 17:16, Ben Fritz wrote:
>> Most word docs on my system are diffing just fine.
>>
>> But one is giving me this error message when I try to show differences
>> between any two revisions:
>>
>> Script: C:\Program Files\TortoiseSVN\Diff-Scripts\diff-doc.js
>> Line: 168
>> Char: 1
>> Error: Unknown runtime error
>> Code: 800A9C64
>> Source: Microsoft JScript runtime error
>>
>> No diff is shown. Instead, there is this error dialog, plus an empty
>> Document1 Word window, and a Word window containing the prior revision
>> being compared. E.g. I'm comparing the changes in revision 6310, and
>> the document opened is for revision 6309.
>>
>
> That error appears to be due to late binding. It happens when the office
> document has a reference to another COM object in it, and that COM
> object does either not exist or fails to initialize.
> You mentioned that the doc has macros in it, maybe the macro references
> another COM/OLE object? Or the doc itself has another object embedded?
>
> Note that even if you remove the failing object, the reference to it
> might still be left in the doc.
>

There are several embedded objects in the document.

I thought maybe it was due to Visio getting removed from my computer,
since there are Visio diagrams in the document. But I reinstalled
Visio and still get the error message.

Command-line still gives the strange "cannot open document.doc" error
as well, although I can open the document manually.

Do you know of a way to find a failing object?

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].