I have a method that creates an Excel file. After running the method I close the Excel instance but it still shows up as a process in the task manager. When I quit my application, this instance disappears.
I can run the Excel method multpile times and it will always leave one instance running
I know it is bad coding to leave an instance running so I would like to close it.
Attached is my code
// Create an Excel object and add workbook...
Excel.Application excel = new Excel.Application();
Excel.Workbook workbook = excel.Application.Workbooks.Add(true);
// Do Excel Processing Here
// Dispose of Excel