如何防止在退出应用程序时由 Excel 互操作启动的“公式已重新计算,保存”对话框?
xlApp.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlApp);
最佳答案
在尝试关闭工作簿之前尝试将 Workbook.Saved 属性设置为 true。
关于c# - 阻止 "Formulas have been recalculated, save"对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3822568/