设为首页
收藏本站
本站论坛
   
3
3
   
  文章列表      

在ie中调用javascript打开excel

<!doctype html public "-/w3c/dtd html 4.0 transitional/en">
<html>
<head>
<meta http-equiv=content-type content="text/html; charset=UTF-8">
<title>top30销控表</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>

 
 
   
 
网上赚钱申请指南
 

友情链接
个人主页
 
 
 
 

wel come to . 欢迎光临
宇宙浪仔