So I have a reference to Microsoft Office 10.0 Object Library in my
WinForms project (VS.NET 2005, 2.0 Framework)
using Microsoft.Offic e.Core;
using Excel;
I have an instance of Excel.Applicati on (excelApp) that I need to
properly dispose of. In my code I am using the following on
Form_Unload:
excelApp.Active Workbook.Close( true, Type.Missing, false);
This doesn't seem to always do the trick... Is there a proper way to
dispose of the Excel.Applicati on object and its associated objects?
WinForms project (VS.NET 2005, 2.0 Framework)
using Microsoft.Offic e.Core;
using Excel;
I have an instance of Excel.Applicati on (excelApp) that I need to
properly dispose of. In my code I am using the following on
Form_Unload:
excelApp.Active Workbook.Close( true, Type.Missing, false);
This doesn't seem to always do the trick... Is there a proper way to
dispose of the Excel.Applicati on object and its associated objects?
Comment