如何杀掉excel进程

我有JS打开一个excel文件后,不管是用quit方法还是用null赋值,都不能杀掉系统中的excel进程.不知道有没有其它方法.
---------------------------------------------------------------

MS的Bug,解决办法:

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q266/0/88.asp&NoWebContent=1
---------------------------------------------------------------

 1<html>
 2<body>
 3<input name="AutomateExcel" onclick="StartExcel()" type="button" value="Automate Excel"/>
 4<script language="Javascript">   
 5var idTmr = "";   
 6  
 7  
 8function StartExcel() {   
 9var oExcel;   
10  
11oExcel = new ActiveXObject("Excel.Application");   
12oExcel.Quit();   
13oExcel = null;   
14idTmr = window.setInterval("Cleanup();",1);   
15}   
16  
17function Cleanup() {   
18window.clearInterval(idTmr);   
19CollectGarbage();   
20}   
21  
22</script>
23</body>
24</html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus