Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何防止退出应用程序时 Excel 互操作启动的“公式已重新计算,保存”对话框?
xlApp.Quit(); System.Runtime.InteropServices.Marshal.ReleaseComObject(xlApp);
在尝试关闭工作簿之前尝试将 Workbook.Saved 属性设置为 true。