在使用Excel Interop加载Excel文件之前,有没有一种方法可以关闭Excel的宏。我只看到了VB.NET的解决方案。
谢谢, Nishant
在使用Excel Interop加载Excel文件之前,有没有一种方法可以关闭Excel的宏。我只看到了VB.NET的解决方案。
谢谢, Nishant
我认为你可以在Excel应用程序上进行设置:
Excel.Application xapp = new Excel.Application();
xapp.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable;