Word automation and " error 5"

H

Hugo Faber

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
 
H

Howard Kaikow

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top