📄 printbutton.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<input type="button" name="button" value="打印预览" class="button textNoPrint" onmouseover="this.className='mouseover textNoPrint'" onmouseout="this.className='button textNoPrint'" onclick="doPrintPreview();this.className='textNoPrint';">
<input type="button" name="button" value="打印设置" class="button" onclick="doPrintSetup()" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="button" value=" 打 印 " class="button" onclick="doPrint()" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" name="button" value=" 关 闭 " onclick="window.close();" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<script>
function doPrintSetup(){
try
{
//打印设置
WB.ExecWB(8,1);
}
catch(exception)
{
alert("您的IE浏览器不支持此功能,请使用IE5.5以上的版本!");
}
}
function doPrintPreview(){
try
{
//打印预览
WB.ExecWB(7,1);
}
catch(exception)
{
alert("您的IE浏览器不支持此功能,请使用IE5.5以上的版本!");
}
}
function doPrint(){
try
{
//打印
WB.ExecWB(6,1);
}
catch(exception)
{
alert("您的IE浏览器不支持此功能,请使用IE5.5以上的版本!");
}
}
</script>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0></OBJECT>
<br>
<font class="textNoPrint textWarnPrompt">您要使用打印设置、预览必须确认安装IE5.5以上版本!</font>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -