printbutton.jsp

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· JSP 代码 · 共 44 行

JSP
44
字号
<%@ 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';">&nbsp;&nbsp;
<input type="button" name="button" value="打印设置" class="button" onclick="doPrintSetup()" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">&nbsp;&nbsp;
<input type="button" name="button" value=" 打  印 " class="button" onclick="doPrint()" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">&nbsp;&nbsp;
<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 + =
减小字号Ctrl + -
显示快捷键?