Results 1 to 5 of 5

Thread: Error: Server threw an exception

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Villiers, South Africa
    Posts
    301

    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)

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error: Server threw an exception

    Are you using Early or Late Binding?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Villiers, South Africa
    Posts
    301

    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...?)

  5. #5
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Error: Server threw an exception

    Quote Originally Posted by dcronje View Post
    (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
  •  



Click Here to Expand Forum to Full Width