<object classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' height='0' name='WB' width='0'></object> <img src="/scheduler/images/pagesetup.gif" name="btnPrintSetup" id="btnPrintSetup" onclick='doPrintSetup()' style="cursor:hand">
<img src="/scheduler/images/preview.gif" name="btnPrintView" id="btnPrintView" onclick='doPrintPreview()' style="cursor:hand">
<img src="/scheduler/images/print.gif" name="btnPrint" id="btnPrint" onclick='doPrint();' style="cursor:hand"> function doPrintSetup(){
WB.ExecWB(8,1);
}
function doPrintPreview(){
tbPrintTool.style.display="none";
WB.ExecWB(7,1)
tbPrintTool.style.display="";
}
function doPrint(){
if(isIesix < 0){
tbPrintTool.style.display="none";
window.print();
tbPrintTool.style.display="";
}else {
tbPrintTool.style.display="none";
factory.printing.Print(false);//开始打印 true:显示提示 false:不显示提示
tbPrintTool.style.display="";
}
}
<img src="/scheduler/images/preview.gif" name="btnPrintView" id="btnPrintView" onclick='doPrintPreview()' style="cursor:hand">
<img src="/scheduler/images/print.gif" name="btnPrint" id="btnPrint" onclick='doPrint();' style="cursor:hand"> function doPrintSetup(){
WB.ExecWB(8,1);
}
function doPrintPreview(){
tbPrintTool.style.display="none";
WB.ExecWB(7,1)
tbPrintTool.style.display="";
}
function doPrint(){
if(isIesix < 0){
tbPrintTool.style.display="none";
window.print();
tbPrintTool.style.display="";
}else {
tbPrintTool.style.display="none";
factory.printing.Print(false);//开始打印 true:显示提示 false:不显示提示
tbPrintTool.style.display="";
}
}
<a href="#" onClick="javascipt:wb.execwb(7,1);">打印预览</a>
只在IE中有效