Home All Groups Group Topic Archive Search About

new Excel.Application

Author
8 Aug 2006 9:02 AM
myname
Hello,

in order to generate Excel files from my VB.Net applications,
I often us "dim xl as new Excel.Application".

When I'm done, I use xl.Quit().

Unfortunately, sometimes, for some reasons,
some Excel instances remain in memory,
even when my program is closed.

How can I make sure all Excel objets are closed ?

Author
8 Aug 2006 10:39 AM
Herfried K. Wagner [MVP]
"myname" <nospam@ihatespam.com> schrieb:
> in order to generate Excel files from my VB.Net applications,
> I often us "dim xl as new Excel.Application".
>
> When I'm done, I use xl.Quit().
>
> Unfortunately, sometimes, for some reasons,
> some Excel instances remain in memory,
> even when my program is closed.

PRB: Office Application Does Not Quit After Automation from Visual Studio
..NET Client
<URL:http://support.microsoft.com/?scid=kb;EN-US;317109>
-> "Troubleshooting"

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>