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.
精彩评论