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.
参考过:
Microsoft Office 14.0 对象库
在 C# 项目中。是否可以关闭计算机上所有打开的 excel 应用程序?谢谢。
Process[] processRunning = System.Diagnostics.Process.GetProcesses(); foreach (Process pr in processRunning) { if (pr.ProcessName == "excel") { pr.Kill(); } }