Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > closing Excel when using COM Interop

Reply
Thread Tools

closing Excel when using COM Interop

 
 
Vikram
Guest
Posts: n/a
 
      02-23-2006
excel object not getting killed even after calling
System.Runtime.InteropServices.Marshal.ReleaseComO bjec. Is there any
workaround


 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmUgQy4gT3Jy?=
Guest
Posts: n/a
 
      02-23-2006
You must explicitly destroy all objects related to Excel, as in this example:
http://SteveOrr.net/articles/ExcelExport.aspx

The above link also shows better ways of dealing with Excel files from
ASP.NET since COM interop is not recommended.

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://SteveOrr.net



"Vikram" wrote:

> excel object not getting killed even after calling
> System.Runtime.InteropServices.Marshal.ReleaseComO bjec. Is there any
> workaround
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel interop from ASP.NET - Process can't be killed Lars-Erik Aabech ASP .Net 14 07-10-2009 01:59 PM
Using Excel Interop via VS.NET 2005 to create and save a new Excelworksheet.. please help! J'son ASP .Net 1 01-28-2008 07:44 PM
Excel interop Vishesh ASP .Net 1 12-13-2005 01:11 AM
interop excel print =?Utf-8?B?ZnJlZWthbWVs?= ASP .Net 0 05-20-2004 03:31 PM
Excel Interop Problems =?Utf-8?B?dHNhbnNvdGVycmE=?= ASP .Net 0 02-25-2004 07:56 PM



Advertisments