开发者

Prevent "Formulas have been recalculated, save" dialog?

开发者 https://www.devze.com 2023-01-17 21:44 出处:网络
How can I prevent the \"Formulas have been recalculated, save\" dialog that is launched by Excel interop when quitting the开发者_运维问答 app?

How can I prevent the "Formulas have been recalculated, save" dialog that is launched by Excel interop when quitting the开发者_运维问答 app?

xlApp.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlApp);


Try setting the Workbook.Saved property to true before attempting to close the workbook.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号