D
ducky26
Unregistered / Unconfirmed
GUEST, unregistred user!
将JSP页面打印出来使用什么方法比较好?
下面是一个HTML页面的打印控制,使用javascript控制,
但是不能在JSP的服务器里运行,请各位指点一下,多谢!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Newdo
cument </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT LANGUAGE=javascript>
<!--
function setPrint()
{
WB.ExecWB(8,1);
}
function previewPrint()
{
WB.ExecWB(7,1)
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<table>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0>
</OBJECT>
<tr>
<td>测试页面!<td>
</tr>
<tr>
</td>
<INPUT type="button" value="打印" id=button1 name=button1 onclick="setPrint();">
<INPUT type="button" value="预览" id=button2 name=button2 onclick="previewPrint();">
</td>
</tr>
</table>
</BODY>
</HTML>
下面是一个HTML页面的打印控制,使用javascript控制,
但是不能在JSP的服务器里运行,请各位指点一下,多谢!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Newdo
cument </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT LANGUAGE=javascript>
<!--
function setPrint()
{
WB.ExecWB(8,1);
}
function previewPrint()
{
WB.ExecWB(7,1)
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<table>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0>
</OBJECT>
<tr>
<td>测试页面!<td>
</tr>
<tr>
</td>
<INPUT type="button" value="打印" id=button1 name=button1 onclick="setPrint();">
<INPUT type="button" value="预览" id=button2 name=button2 onclick="previewPrint();">
</td>
</tr>
</table>
</BODY>
</HTML>