Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - closing Excel when using COM Interop

 
Thread Tools Search this Thread
Old 02-23-2006, 12:23 PM   #1
Default closing Excel when using COM Interop


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




Vikram
  Reply With Quote
Old 02-23-2006, 05:37 PM   #2
=?Utf-8?B?U3RldmUgQy4gT3Jy?=
 
Posts: n/a
Default RE: closing Excel when using COM Interop
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
>
>
>



=?Utf-8?B?U3RldmUgQy4gT3Jy?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Referencing Cell Color In Microsoft Excel CVBartosh General Help Related Topics 0 10-03-2008 01:37 PM
How to run a Excel Macro from the Java application? Kiranu General Help Related Topics 0 09-12-2007 02:11 PM
Uploading Excel file into sql table shalim Software 1 10-31-2006 08:57 AM
OLYMPIC GAMES ATHENS 2004 Opening Ceremony 2 DVDs, Closing Ceremony 2 DVDs, and EURO 2004 ( 6 DVDs ) , THE MATCHES OF THE GREEK NATIONAL FOOTBALL TEAM, DURING THE PANEUROPEAN FOOTBALL CHAMPIONSHIPS 'EURO 2004' IN THE FOOTBALL STADIUMS IN PORTUGAL, W Zorba.GR DVD Video 0 10-29-2004 05:45 PM
DVD Verdict reviews: EXCEL SAGA: IMPERFECT COLLECTION and more! DVD Verdict DVD Video 0 09-02-2004 10:08 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46