|
-
Aug 12th, 2010, 01:39 PM
#1
Thread Starter
Hyperactive Member
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)
-
Aug 12th, 2010, 06:48 PM
#2
Re: Error: Server threw an exception
Step through your code to see which line generates that error, at least...
-
Aug 13th, 2010, 10:45 AM
#3
Re: Error: Server threw an exception
Are you using Early or Late Binding?
-
Aug 14th, 2010, 03:02 PM
#4
Thread Starter
Hyperactive Member
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...?)
-
Aug 15th, 2010, 12:23 AM
#5
Re: Error: Server threw an exception
 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
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|