Hi,
I have a VB6 application which is able to create report documents
using Word. Automation and early binding is used. I have compiled the
program using the Microsoft Word 8 library (msword8.olb). The
application has been installed on 2 machines, one with Office 97, the
other with Office 2002.
When I run the application, Word is started ( so there is no problem
finding the word object) and the report generation begins...
After a while, I got the infamous error message 5 "invalid argument or
procedure call" After some testing it seems that the application fails
when it has to use the Range.Find object and also the updating of a
table of contents fails.
Any general or specific hints,clues?
Hugo
Howard Kaikow - 06 Feb 2005 19:15 GMT
If the VB 6 .exe was created using Word 97 and early binding, then I can
suspect only that there is a programming error that you will have to
tediously locate, or, there is a method/object that is being used in a way
that works differently in Word 2002.
This type of problem usually requires brute force debugging.

Signature
http://www.standards.com/; See Howard Kaikow's web site.
> Hi,
>
[quoted text clipped - 15 lines]
>
> Hugo