|
|
|
|
<%@page language="java" pageEncoding="utf-8" %>
|
|
|
|
|
<link href="./css/styles_all.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<style>
|
|
|
|
|
@media screen{.onlyPrint{display:none}}
|
|
|
|
|
@media print{
|
|
|
|
|
.NotPrint{display:none;}
|
|
|
|
|
.PageNext{page-break-after: always;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<%--<center class="NotPrint">--%>
|
|
|
|
|
<%-- <OBJECT id=WebBrowser classid=5685B6F3_BEAF_4CA0_BF91_EDEC4F4165A2 height=0 width=0>--%>
|
|
|
|
|
<%-- </OBJECT>--%>
|
|
|
|
|
<%-- <input type="image" border="0" alt="直接打印" src="../../../images1/zjdy.png"onclick=document.all.WebBrowser.ExecWB(6,6)>--%>
|
|
|
|
|
<%-- <input type="image" border="0" alt="页面设置" src="../../../images1/ymsz.png" onclick=document.all.WebBrowser.ExecWB(8,1)>--%>
|
|
|
|
|
<%-- <input type="image" border="0" alt="打印预览" src="../../../images1/dyyl.png" onclick=document.all.WebBrowser.ExecWB(7,1)>--%>
|
|
|
|
|
<%-- <a href="javascript:window.opener=null;window.open('','_self');window.close();"><img src="../../images1/gb.png" alt="关闭" border="0" /></a>--%>
|
|
|
|
|
<%--</center>--%>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script language="javascript">
|
|
|
|
|
function printsetup() {
|
|
|
|
|
// 打印页面设置
|
|
|
|
|
wb.execwb(8, 1);
|
|
|
|
|
}
|
|
|
|
|
function printpreview() {
|
|
|
|
|
// 打印页面预览
|
|
|
|
|
wb.execwb(7, 1);
|
|
|
|
|
}
|
|
|
|
|
function printit() {
|
|
|
|
|
if (confirm('确定打印吗?')) {
|
|
|
|
|
wb.ExecWB(6, 1)
|
|
|
|
|
//wb.execwb(1,1)//打开
|
|
|
|
|
//wb.ExecWB(2,1);//关闭现在所有的IE窗口,并打开一个新窗口
|
|
|
|
|
//wb.ExecWB(4,1)//;保存网页
|
|
|
|
|
//wb.ExecWB(6,1)//打印
|
|
|
|
|
//wb.ExecWB(7,1)//打印预览
|
|
|
|
|
//wb.ExecWB(8,1)//打印页面设置
|
|
|
|
|
//wb.ExecWB(10,1)//查看页面属性
|
|
|
|
|
//wb.ExecWB(15,1)//好像是撤销,有待确认
|
|
|
|
|
//wb.ExecWB(17,1)//全选
|
|
|
|
|
//wb.ExecWB(22,1)//刷新
|
|
|
|
|
//wb.ExecWB(45,1)//关闭窗体无提示
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<body>
|
|
|
|
|
<div style="width:640px;height:20px;margin:100px auto 0 auto;font-size:12px;text-align:right;">
|
|
|
|
|
<input value="打印" type="button" onclick="javascript:window.print()" />
|
|
|
|
|
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="wb" name="wb" width="0">
|
|
|
|
|
</OBJECT>
|
|
|
|
|
<input type=button name=button_print style="display:none;" value="打印本单据" onclick="javascript:printit()">
|
|
|
|
|
<input type=button name=button_setup value="打印页面设置" onclick="javascript:printsetup();">
|
|
|
|
|
<input type=button name=button_show value="打印预览" onclick="javascript:printpreview();">
|
|
|
|
|
<input type=button name=button_fh value="关闭" onclick="javascript:window.close();">
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:640px;height:624px;margin:20px auto;">
|
|
|
|
|
这是需要打印的内容
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|