C#和Asp.net下调用Excel后无法自动关闭进程的解决方法

在ASP.NET中调用EXCEL后(比如导出EXCEL),EXCEL长驻内存的解决办法就是---干掉它!!! 

原帖地址: http://hi.baidu.com/cnzynet/blog/item/b7d1a0f22dc00315b17ec50f.html

添加引用:

using System.Runtime.InteropServices;

 

结束进程代码
原文地址:https://www.cnblogs.com/luoweihua7/p/1384024.html