Win2003Server 杀Excel进程。。。。。。。。高手进
ASP.Net里对EXCEL进行操作(books.open),已经对所有实例都赋为null,并用GC回收,在2000Server下可以杀掉进程,2003Server下却不行。
江湖救急,2003高手指教!
我注销进程代码如下:
book.Close(false, Type.Missing,Type.Missing);
books.Close();
excelApp.Quit();
book = null;
books = null;
range = null;
excelApp = null;
GC.Collect();