PC Review


Reply
Thread Tools Rate Thread

Closing instances of MSWord

 
 
=?Utf-8?B?UmFqZXNo?=
Guest
Posts: n/a
 
      7th Sep 2005
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



 
Reply With Quote
 
 
 
 
Carlos J. Quintero [VB MVP]
Guest
Posts: n/a
 
      7th Sep 2005
See:

Office application does not quit after automation from Visual Studio .NET
client
http://support.microsoft.com/default...b;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" <(E-Mail Removed)> escribió en el mensaje
news:1D51CC5F-4E58-4FB3-91C6-(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing a MSWord document João Carlos Microsoft Word Document Management 2 25th May 2009 05:14 PM
Closing Multiple Instances bobdydd Microsoft Outlook 3 22nd May 2006 12:56 AM
Run-time error '91': when closing MSWord 2003 =?Utf-8?B?UFN0b3JtNw==?= Microsoft Word New Users 1 16th Dec 2004 01:01 AM
Animation When Closing MSWord JamesJ Microsoft Word New Users 3 30th Apr 2004 11:02 PM
MSword saving/closing slow aarkay Microsoft Word Document Management 0 5th Dec 2003 06:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:45 AM.