Hi All,
We have a .NET service which creates a shared instance of Microsoft Word.
This instance is created in the Constructor of the Shared class.
Once we have completed using the instance, we close/ quit the instance.
Again on a call to the shared class another instance is created.
And the cycle repeats.
What we face is an issue while trying to close the instance of word or
destroy the same when the service is stopped.
A hanging instance of MSWord is seen in TaskManager.
How do we get rid of this and make sure that all instances created by the
service are destroyed when the service stops?

Thansk for your time.
Rajesh

Re: Closing instances of MSWord by Carlos

Carlos
Wed Sep 07 04:37:32 CDT 2005

See:

Office application does not quit after automation from Visual Studio .NET
client
http://support.microsoft.com/default.aspx?scid=kb;en-us;317109

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Rajesh" <Rajesh@discussions.microsoft.com> escribió en el mensaje
news:1D51CC5F-4E58-4FB3-91C6-2835FCA11957@microsoft.com...
> Hi All,
> We have a .NET service which creates a shared instance of Microsoft Word.
> This instance is created in the Constructor of the Shared class.
> Once we have completed using the instance, we close/ quit the instance.
> Again on a call to the shared class another instance is created.
> And the cycle repeats.
> What we face is an issue while trying to close the instance of word or
> destroy the same when the service is stopped.
> A hanging instance of MSWord is seen in TaskManager.
> How do we get rid of this and make sure that all instances created by the
> service are destroyed when the service stops?
>
> Thansk for your time.
> Rajesh
>
>
>