473,395 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Releasing Excel From Memory

I have made an application in VB.net 2003 and in it I create a Excel
Workbook with several spreadsheets in it.

When the code is finished creating the spreadsheets the workbook is saved to
the hard drive and I call: xlbook.Application.Quit but if I go to my Task
Manager and look at Active Processes, there is a listing for Excel for each
and every time I have run my applet.

How do I stop this from happening... also where can i find a difinitive
reference on the net for programming in VB.net for Excel?

Nov 20 '05 #1
3 2858
Same problem here: App.Quit() closes the active window, but Excel stays
in the background. A nasty consequence of this is that when the .net app
crashes (or gets "improperly terminated" :) ) Excel remains in the
background and when you then open Excel manually the workbook-area
doesn't get drawn. If you then don't know how to ctrl-alt-del or don't
have enough system privileges to do so you need to log off and on again

Atley wrote:
I have made an application in VB.net 2003 and in it I create a Excel
Workbook with several spreadsheets in it.

When the code is finished creating the spreadsheets the workbook is saved to
the hard drive and I call: xlbook.Application.Quit but if I go to my Task
Manager and look at Active Processes, there is a listing for Excel for each
and every time I have run my applet.

How do I stop this from happening... also where can i find a difinitive
reference on the net for programming in VB.net for Excel?

Nov 20 '05 #2
* "Atley" <at*****@hotmail.com> scripsit:
I have made an application in VB.net 2003 and in it I create a Excel
Workbook with several spreadsheets in it.

When the code is finished creating the spreadsheets the workbook is saved to
the hard drive and I call: xlbook.Application.Quit but if I go to my Task
Manager and look at Active Processes, there is a listing for Excel for each
and every time I have run my applet.


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

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #3
On Wed, 3 Mar 2004 14:36:18 -0500, "Atley" <at*****@hotmail.com> wrote:

¤ I have made an application in VB.net 2003 and in it I create a Excel
¤ Workbook with several spreadsheets in it.
¤
¤ When the code is finished creating the spreadsheets the workbook is saved to
¤ the hard drive and I call: xlbook.Application.Quit but if I go to my Task
¤ Manager and look at Active Processes, there is a listing for Excel for each
¤ and every time I have run my applet.
¤
¤ How do I stop this from happening... also where can i find a difinitive
¤ reference on the net for programming in VB.net for Excel?
¤
¤

See the following:

PRB: Office Application Does Not Quit After Automation from Visual Studio .NET Client
http://support.microsoft.com/default...&Product=vbNET

You may also want to consider the Office PIA depending upon which version you are using:

http://msdn.microsoft.com/library/de...assemblies.asp
http://msdn.microsoft.com/library/de...dc_oxppias.asp
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: lebo | last post by:
Hi I'm trying to understand how Python handles memory usage and dynamic object loading and unloading. Problem to solve? Build a very low memory footprint (non-GUI) Python application for...
2
by: sausage31 | last post by:
I'm exporting some data to excel but am having trouble getting Access to 'release' Excel. What i want to achieve is to open excel, export some data then leave excel open so that the user can...
18
by: lylefair | last post by:
Can you post code, or a reference to a md? or ad? file on a website, where object variables are not released when they go out of scope and cause a problem, (but causing a problem is extraneous to...
7
by: trialproduct2004 | last post by:
Hi all I am having application in c# where i am loading one table of database into dataset. My table is of large size. so whenever i am loading that into dataset my memory size is getting...
2
by: M.Ob | last post by:
Hello... I am having issues with my asp.net apps not releasing memory. The memory usage for the process w3p.exe continues to grow to it's allowable limit and does not drop until the app pool is...
8
by: Sean | last post by:
I have a service that is pulling alot of records from a SQL Server table in a DataSet. This process takes up alot of memory, which is to be expected. But when the process is finished, I am clearing...
2
by: B.N.Prabhu | last post by:
In my web application(C#) . I am adding one excel sheet and then save and closing that excel file. In the finally bloack i gave Marshal.ReleaseComObject(clsExcel); But when i go and see in the...
12
by: iker.arizmendi | last post by:
Is there any way to get Python to release memory back to the C allocator? I'm currently running a script that goes through the following steps: 1) Creates a very large number of Python objects...
2
by: enggwaqas | last post by:
Hi guys, I have a memory problem in my vb.net application. It's actually a point of sales system, which must be keep running the whole day. The problem is: application is not releasing any memory...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.