Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

Word automation and " error 5"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hugo Faber - 03 Feb 2005 15:12 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.