Closing Excel Application Process in C# after Data Access
问题 I\'m writing an application in C# that opens an Excel template file for read/write operations. I want to when user closes the application, excel application process has been closed, without saving excel file. See my Task Manager after multiple runs of the app. I use this code to open the excel file : public Excel.Application excelApp = new Excel.Application(); public Excel.Workbook excelBook; excelBook = excelApp.Workbooks.Add(@\"C:/pape.xltx\"); and for data access I use this code : Excel