<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="導(dǎo)出當前頁用戶到excel" class="notPrint">
?<input type="button"? onclick="doopenaudit()" value="導(dǎo)出所有用戶到excel" class="notPrint">
posted on 2006-05-12 11:26
happytian 閱讀(118)
評論(0) 編輯 收藏