Office 2007 Can not kill Process

L

Lit

Hello,

After Instantiating a new Word2007 Process and doing something with it It
does not seem to go away. Like get killed.

However

After Instantiating a new Excel2007 Process and when my Program exists it
gets killed.

I found this out when viewing the TaskManager to see what is happening.

Assume app = new Microsoft.office.Interop.Word.Application, or
......Excel.Application
I set app = nothing
I tried to find if app has app.close() or app.exit() or some method to
close it or kill it and I find nothing

How can I find if an instance of an application is running under TaskManager
and how do I kill it.

I would rather see it get killed at will or at the end of the program that
insatiate it.

Thanks for any help

Lit
 
L

Lit

I did not see Quite()

Okay app.Quit() does make Word to Quit but not Excel
I must be doing something wrong here.

Lit
 
L

Lit

Alvin,

Thank you Alvin, you been a great help.

Lit


Alvin Bruney said:
probably not, it's still in beta


--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

Lit said:
I did not see Quite()

Okay app.Quit() does make Word to Quit but not Excel
I must be doing something wrong here.

Lit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top