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。
Workbook newWorkbook = application.Workbooks.Open(templatePath);
当我运行此代码时,Excel 想要安装与 excel 文档相关的插件,但我不希望这样。
那么有没有办法关闭它?
请参阅此示例代码..
这里 processControl 是 Process Type
System.Diagnostics.Process processControl = new System.Diagnostics.Process(); processControl.StartInfo.FileName="C:\\Program Files\\Microsoft Office\\Office12\\EXCEL.exe"; processControl.Start();