Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB.NET & Excel
Message
De
24/03/2005 04:31:20
Steve Jones
Business Systems Services Uk Ltd
Swansea, Royaume Uni
 
 
À
23/03/2005 11:16:23
Steve Jones
Business Systems Services Uk Ltd
Swansea, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Divers
Thread ID:
00998469
Message ID:
00998780
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform