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

joker77

Freshman
Joined
Sep 16, 2005
Messages
38
Location
Dublin
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.
 
Back
Top