On Mon, Jun 14, 2010 at 1:49 PM, Alan Bourke <[email protected]> wrote:
>
>
> On Mon, 14 Jun 2010 10:50 -0500, "Stephen Russell"
> <[email protected]> wrote:
>>  From my C# code I would encase my excel object in a using
>> statement
>
> Would that work though? In C# I mean - presumably your Excel object is
> using COM Interop ... does that implement iDisposable ?
> --
----------------

You are right you cannot do:
using (Microsoft.Office.Interop.Excel.Application ExA  .......)

I love the using()  :)

So you are correct in putting the ExA.= null; in the finally

I don't mess with Excel like this.  I would do everything from data in
ram and then save as an excel file extension.  Doing websites I am
very leery of giving rights to any type of file with macro
capabilities on a server.  :)  So I don't!



-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to