<script>
var commonPrintDirection = "horizontal";//打印方向,vertical:纵向;horizontal:横向,默认是vertical
function init(){
document.getElementById("id1").value=window.opener.eas_obj.pint.msg1;
document.getElementById("id2").value=window.opener.eas_obj.pint.msg2;
document.getElementById("id3").value=window.opener.eas_obj.pint.msg3;
document.getElementById("id4").value=window.opener.eas_obj.pint.msg4;
}
</script>
<body οnlοad="init()">
<table width="100%" class="noprint" align="center">
<tr>
<td align="center"><OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=print_wb name=print_wb width=0></OBJECT>
<input type=button class="noprintbutton" id="id1" value=打印 οnclick=print_wb.ExecWB(6,1)>
<input type=button class="noprintbutton" id="id2" value=直接打印 οnclick=print_wb.ExecWB(6,6)>
<input type=button class="noprintbutton" id="id3" value=页面设置 οnclick=print_wb.ExecWB(8,1)>
<input type=button class="noprintbutton" id="id4" value=打印预览 οnclick=print_wb.ExecWB(7,1)>
</td>
</tr>
</table>
</body>
javascript设置页面打印预览
最新推荐文章于 2021-06-15 16:05:23 发布