Error: Server threw an exception
There is a portion in my program which converts a .doc file to a .rtf file. It always worked fine, even when I installed Word 2007 at a later stage. When I run my program on a PC which has Word 2003 as well as Word 2007, it gives me this error:
Automation error
The Server threw an exception
(I searched previous posts for this error, but they do not deal with Word versions)
Re: Error: Server threw an exception
Step through your code to see which line generates that error, at least...
Re: Error: Server threw an exception
Are you using Early or Late Binding?
Re: Error: Server threw an exception
The error occurs in the 4th line:
Dim oApp As Word.Application
Dim oDoc As Word.Document
Set oApp = New Word.Application
Set oDoc = oApp.Documents.Open(FileName)
(Sorry, maybe because I'm a self taught programmer, I don't know what is early & late binding...?)
Re: Error: Server threw an exception
Quote:
Originally Posted by
dcronje
(Sorry, maybe because I'm a self taught programmer, I don't know what is early & late binding...?)
See this: http://support.microsoft.com/kb/245115 :wave: