Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB.NET & Excel
Message
From
24/03/2005 04:31:20
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
 
 
To
23/03/2005 11:16:23
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00998469
Message ID:
00998780
Views:
19
After Hours of searching I finally found the answer to releasing the EXCEL.EXE process from task manager.

If anybody else has the same problem, the code I used is :
oWB = Nothing
oSheet = Nothing
oXL.Quit()
While (System.Runtime.InteropServices.Marshal.ReleaseComObject(oXL) <> 0) ' Repeat until no more COM references
End While
oXL = Nothing

' Invoke garbage collector before termination
GC.Collect()
GC.WaitForPendingFinalizers()
Thanks

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform