I'm using c# to read/write data to an excel spreadsheet.
I'm using these three statements to open my excel file
Excel.Application excelapp = new Excel.Application();
Excel._Worksheet worksheet = (Excel._Worksheet)workbook.ActiveSheet;
Excel._Worksheet worksheet = (Excel._Worksheet)workbook.ActiveSheet;
And these two lines to close/save the sheet.
workbook.Save();
workbook.Close();
The problem I'm having is that the EXCEL process is still active. (I used task manager to check.) And after reading/ writing data to the worksheet I have like 20 EXCEL processes active.
If anyone can show me a technique of ending the excelapp proc right after i close the workbook that would be great.
Many thanks, Aaron.