富贵资源网 Design By www.hznty.com
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN“>
<HTML>
<HEAD>
<META http-equiv=Content-Type content=“text/html; charset=utf-8“>
<TITLE>打开Excel表</TITLE>
</HEAD>
<BODY>
<input name=“shanghai“ type=“button“ class=“but“ id=“shanghai“ onClick=“StartExcel('上海')“ value=“上海店“>
<SCRIPT LANGUAGE=“Javascript“>
var idTmr = ““;
function StartExcel(strFileName)
{
var oExcel;
var oWorkbook;
var strAllName;
oExcel = new ActiveXObject(“Excel.Application“);
//if(strFileName=null || strFileName=““)
//{return;
//}
strAllName=“\\\\ep-hgh\\Top30销控表\\TOP30招商续约销控表-“+strFileName+“.xls“;
oExcel.Workbooks.Open(strAllName);
//oExcel.Workbooks.Open(“file://ep-hgh/Top30销控表/TOP30招商续约销控表-上海.xls“);
oExcel.DisplayAlerts = false;
oExcel.Visible = true;
//oExcel.Quit();
//oExcel = null;
//防EExcel死进程的关键!!必须!!!downmoon严重声明
idTmr = window.setInterval(“Cleanup();“,1000);
}
function Cleanup() {
window.clearInterval(idTmr);
CollectGarbage();
}
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD>
<META http-equiv=Content-Type content=“text/html; charset=utf-8“>
<TITLE>打开Excel表</TITLE>
</HEAD>
<BODY>
<input name=“shanghai“ type=“button“ class=“but“ id=“shanghai“ onClick=“StartExcel('上海')“ value=“上海店“>
<SCRIPT LANGUAGE=“Javascript“>
var idTmr = ““;
function StartExcel(strFileName)
{
var oExcel;
var oWorkbook;
var strAllName;
oExcel = new ActiveXObject(“Excel.Application“);
//if(strFileName=null || strFileName=““)
//{return;
//}
strAllName=“\\\\ep-hgh\\Top30销控表\\TOP30招商续约销控表-“+strFileName+“.xls“;
oExcel.Workbooks.Open(strAllName);
//oExcel.Workbooks.Open(“file://ep-hgh/Top30销控表/TOP30招商续约销控表-上海.xls“);
oExcel.DisplayAlerts = false;
oExcel.Visible = true;
//oExcel.Quit();
//oExcel = null;
//防EExcel死进程的关键!!必须!!!downmoon严重声明
idTmr = window.setInterval(“Cleanup();“,1000);
}
function Cleanup() {
window.clearInterval(idTmr);
CollectGarbage();
}
</SCRIPT>
</BODY>
</HTML>
富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...