.net 彻底结束excel进程

if(excel!=null)
   {
    excel.Workbooks.Close();

    excel.Quit();

    int generation=System.GC.GetGeneration(excel);
    excel=null;
    System.GC.Collect(generation);
   }

我一直用,绝对没问题
 

原文地址:https://www.cnblogs.com/zfking/p/506759.html