在将 Excel ApplicationClass 的 DisplayAlerts 属性设置为 false 时,我遇到了以下错误的紧急问题。
var excel = new Excel.Application();
excel.DisplayAlerts = false;
我在日志中收到以下错误消息:
System.Runtime.InteropServices.COMException (0x800AC472): Exception from HRESULT: 0x800AC472
at Microsoft.Office.Interop.Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS)
at Service.Dispose()
显示以下消息框
(source: xlam.ch http://www.xlam.ch/xlimits/Nicht-genug-Speicher-fuer-vollstaendige-Anzeige.gif)
对这个案例有什么想法吗?
问候
MacX
我想你应该打电话DisplayAlerts
以Excel.Application
你正在工作。
像这样的事情:
var excel = new Excel.Application();
excel.DisplayAlerts = false;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)