ASP.NET控制EXCEL,完全结束进程
来源:互联网 发布:淘宝运费模块怎么设置 编辑:程序博客网 时间:2024/05/17 00:59
Excel.Application ThisApp = new Excel.ApplicationClass();
Excel.Workbooks ThisWbs = ThisApp.Workbooks;
Excel.Workbook ThisWb = ThisWbs.Open("G:/demo.xls",Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value);
ThisWb.SaveAs("G:/HelloExcel.xml",Excel.XlFileFormat.xlXMLSpreadsheet,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Excel.XlSaveAsAccessMode.xlNoChange,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value);
//Excel.XlFileFormat.xlXMLSpreadsheet控制存储文件的类型
System.Runtime.InteropServices.Marshal.ReleaseComObject(ThisWb);
ThisWb = null;
ThisWbs.Close();
System.Runtime.InteropServices.Marshal.ReleaseComObject(ThisWbs);
ThisWbs = null;
System.Runtime.InteropServices.Marshal.ReleaseComObject(ThisApp);
ThisApp = null;
GC.Collect();
- ASP.NET控制EXCEL,完全结束进程
- 在ASP.NET中结束EXCEL进程的程序
- ASP.NET调用Excel不能结束进程的解决方法
- asp.net控制excel
- ASP.NET导入、导出EXCEL中的一些问题汇总(结束EXCEL进程)
- asp.net excel进程
- 在.net中结束Excel,Word进程
- 关于ASP.NET中调用Excel组件不能结束进程的解决方法
- 关于ASP.NET中调用Excel组件不能结束进程的解决方法
- Asp.net结束服务器端的进程
- 使用ASP.NET判断进程是否存在和结束进程
- 结束excel进程
- 完美结束EXCEL进程
- 结束EXCEL进程
- 结束EXCEL进程
- 彻底结束EXCEL进程
- 结束Excel进程
- C#结束Excel进程
- 从报表的绘制方式来谈谈:SQL报表,Cell报表和中国式报表.
- vb组件测试
- ORACLE问题,每天10问(七)
- 黑客 PHP JAVA我到底学那样
- 我的堕落的大学生活
- ASP.NET控制EXCEL,完全结束进程
- 《成长》:微软捕获中国黑客刘蝶雨的故事
- 求助:我的VC6.0程序怎么在xp下不能运行
- 在win2000下使用hosts文件
- 用HTA来自定义你的Web应用程序
- 一个控件项目每日编译的步骤
- [原创]使用Microsoft.Web.UI.WebControls的iewc轻松解决权限树问题(无限级权限管理)
- 第一篇blog日志
- 办公室里无小事”职场生存需避七陷阱