.net 之我见

为了生活

.net 彻底结束excel进程

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

    excel.Quit();

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

 

我一直用,绝对没问题
 

posted on 2006-09-17 19:28  zfking  阅读(898)  评论(3编辑  收藏  举报

导航