I'm one of the developers of an application, in Visual Basic 6, that uses Microsoft Word. The application uses Microsoft word for 8 years or so, and allways worked fine, till one day, on the computer that had the project and in one client only, started giving the following error:
-2147319779
"Automation error
Object library not registered"
We build another computer and installed everything else, again. Everything was working just fine, till one day started giving the same error. The problem is that we can't understand what did we do for this error to start happening. The initial version of MS Word was 97, after we installed the MS Word 2000, for a few months it started working fine, till one day, once more.
We've googled for this error and we found somethings that we've tryed, but did not worked. We tried to :
-> Uninstall Norton Antivirus 2003 (we found a web page stating that Norton Antivirus 2000 could make this error happen)
-> delete "Normal.dot" file.
-> change the "Normal.dot" file with another from another computer
We are desperate because we can't debug this part of our application, and its somehow difficult to develop under this circumstances
the error happens in the following line of code:
Set objWordApp = New Word.Application
We thank you in advanced
Comments
:
: -2147319779
: "Automation error
: Object library not registered"
:
: We build another computer and installed everything else, again. Everything was working just fine, till one day started giving the same error. The problem is that we can't understand what did we do for this error to start happening. The initial version of MS Word was 97, after we installed the MS Word 2000, for a few months it started working fine, till one day, once more.
: We've googled for this error and we found somethings that we've tryed, but did not worked. We tried to :
: -> Uninstall Norton Antivirus 2003 (we found a web page stating that Norton Antivirus 2000 could make this error happen)
: -> delete "Normal.dot" file.
: -> change the "Normal.dot" file with another from another computer
:
: We are desperate because we can't debug this part of our application, and its somehow difficult to develop under this circumstances
: the error happens in the following line of code:
:
: Set objWordApp = New Word.Application
:
: We thank you in advanced
:
Hi,
New Word.Application - the Word is reference to the ms word dll library. When you use new version of ms office, did you change the reference to the higher version of ms word dll?
If you did not (and you need to run it with old one), did you tried regsrv to register it?
[blue][b][italic][size=4]P[/size]avlin [size=4]II[/italic][/size][/b][/blue]
[purple]Don't take life too seriously anyway you won't escape alive from it![/purple]