Actually i m writing a small application(Win Form + C#), where i am reading the Excel file. After exiting from the application and went to the task manager i found that Excel.exe is still running. And as i run my application several times i found multiple instances of Excel.exe running in the task manager.
So can somebody tell me as what needs to be done to kill "Excel.exe" each time i exit from the application...
The code is somewhat like this:
ApplicationClass appClass = new ApplicationClass();
Workbook workBook = appClass.Workbooks.Open(path,0,true,5,"","",true,XlPlatform.xlWindows,"\t",false,false,0,true,1,0);
Worksheet workSheet = (Worksheet)workBook.ActiveSheet;
All under this namespace: Microsoft.Office.Interop.Excel; that is COM