<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>---打印信息---</title>
<style media="print" type="text/css">
.Noprint
{
display: none;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="Noprint">
<input name="button_prin" onclick="document.all.WebBrowser.ExecWB(6,6)" type="button"
value="打印" />
<input name="button_show" onclick="document.all.WebBrowser.ExecWB(7,1)" type="button"
value="打印预览" />
<input name="button_prin" onclick="document.all.WebBrowser.ExecWB(8,1)" type="button"
value="打印设置" />
<object id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" viewastext></object>
</div>
<div style="text-align: center; width: 20cm; border: 1px solid #cccccc;>
这里是要打印的地方,上面的按钮是打印的时候是不会显示的!<br>
A4 的纸张打印!
</div>