复制代码 代码如下: nbsp;HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Top30销控表 ... <BR>var idTmr = ""; <BR>function StartExcel(strFileName) <BR>...{ <BR>var oExcel; <BR>var oWorkbook; <BR>var strAllName; <BR>oExcel = new ActiveXObject("Excel.Application"); <BR>//if(strFileName=null || strFileName="") <BR>//{return; <BR>//} <BR>strAllName="\\ep-hgh\Top30销控表\TOP30招商续约销控表-"+strFileName+".xls"; <BR>oExcel.Workbooks.Open(strAllName); <BR>//oExcel.Workbooks.Open("file://ep-hgh/Top30销控表/TOP30招商续约销控表-上海.xls"); <BR>oExcel.DisplayAlerts = false; <BR>oExcel.Visible = true; <BR>//oExcel.Quit(); <BR>//oExcel = null; <BR>//防EExcel死进程的关键!!必须!!!downmoon严重声明 <BR>idTmr = window.setInterval("Cleanup();",1000); <BR>} <BR>function Cleanup() ...{ <BR>window.clearInterval(idTmr); <BR>CollectGarbage(); <BR>} <BR>