Need help on problem with Excel processes
-
Hi! I´m reading a Excel-Sheet by calling the Excel-COM-Object with the following code: Excel.Application ExcelObj = new Excel.Application(); Excel.Workbook theWorkbook = ExcelObj.Workbooks.Open(filename, false, true, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, true, true); Excel.Sheets sheets = theWorkbook.Worksheets; Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(sheetNumber); for (int i = startRow; i <= endRow; i++) { Excel.Range range = worksheet.get_Range(startCol + i.ToString(), endCol + i.ToString()); System.Array myvalues = (System.Array)range.Cells.Value2; string[] strArray = ConvertToStringArray(myvalues); storage.Add(strArray); } ExcelObj.Quit(); My problem is, that Excel does not really quit but stay in my task-manager. What do i have to do to make Excel to leave my memory? Thanks!