<script language=javascript>
function dountake(protypeid,mobile){
window.open("quickOperating.do?method=untake&mobile="+mobile+"&id="+protypeid,"_self","");
}
function doopenaudit(){
window.open("listMmsUser.do?method=listAll","_blank","width=0,height=0");
}
function AutomateExcel()
{
var oXL = new ActiveXObject("Excel.Application");
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
var hang = tablel.rows.length;
var lie = tablel.rows(0).cells.length;
for (i=0;i<hang;i++)
{
for (j=0;j<lie;j++)
{
oSheet.Cells(i+1,j+1).value = tablel.rows(i).cells(j).innerText;
}
}
oXL.Visible = true;
oXL.UserControl = true;
}
</script>
使用方法:
<input type="button" name="out_excel" onclick="AutomateExcel();" value="导出当前页用户到excel" class="notPrint">
<input type="button" onclick="doopenaudit()" value="导出所有用户到excel" class="notPrint">
posted on 2006-05-12 11:26
happytian 阅读(117)
评论(0) 编辑 收藏