Jump to content
Xtreme .Net Talk

Problem with Word Function in DLL class when called from Windows Service


Recommended Posts

Posted

Hi,

 

I'm not really sure where I should be posting this one, it's in the area of Word Interop, Windows Services and Asynchronous programming...

 

I have a Class Library DLL, which contains a function that processes a Word document (opens Word, does some stuff, quits Word). The class library contains another function that basically just wraps this to allow it to be called asynchronously.

 

When I include the DLL in a Windows Forms project I have and run it - it works fine, but when I include the DLL in the Windows Service project, it fails to process the Word Document, and also leaves Word open - even though the code goes into the catch section of the Try catch block which contains a Word.Quit.

What if the Hokey-Pokey IS what it's all about?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...