Steps to reproduce:
1. Create a workbook with multiple worksheets (at least 2 worksheets).
2. Use formulae in worksheets. Also, reference cells from other worksheets.
3. Call ExcelPackage.SaveAs to save the file. In my case, I used the overload with the Stream parameter.
4. Open the excel file created (without doing any editing).
5. Close the file.
Dialog 'Do you want to save the changes you made to 'workbook.xlsx'?' appears. But as described in the steps, there are really no changes made.
My question is how do I generate an excel workbook without showing that dialog? TIA
1. Create a workbook with multiple worksheets (at least 2 worksheets).
2. Use formulae in worksheets. Also, reference cells from other worksheets.
3. Call ExcelPackage.SaveAs to save the file. In my case, I used the overload with the Stream parameter.
4. Open the excel file created (without doing any editing).
5. Close the file.
Dialog 'Do you want to save the changes you made to 'workbook.xlsx'?' appears. But as described in the steps, there are really no changes made.
My question is how do I generate an excel workbook without showing that dialog? TIA