[CODE]<html>
<head>
<meta name=vs_targetSchema content="
http://schemas.microsoft.com/intellisense/ie5">
<title>局部打印</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--media=print 这个属性可以在打印时有效-->
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after:always;}
</style>
<style>
.tab
{
border-color: #000000 #000000 #000000 #000000;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
}
</style>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
</head>
<body>
<hr align="center" width="90%" size="1" noshade class="NOPRINT">
<table width="80%" height="97" border="0" align="center" cellpadding="0" cellspacing="1" class="tab">
<tr>
<td width="86">第一页:</td>
<td width="689"> </td>
</tr>
<tr>
<td> </td>
<td>1</td>
</tr>
<tr>
<td> </td>
<td>2</td>
</tr>
<tr>
<td> </td>
<td>3</td>
</tr>
<tr>
<td> </td>
<td>4</td>
</tr>
</table>
<!--分页-->
<div class="PageNext"></div>
<hr align="center" width="90%" size="1" noshade class="NOPRINT">
<table width="80%" height="97" border="0" align="center" cellpadding="0" cellspacing="1" class="tab">
<tr>
<td width="86">第二页:</td>
<td width="689"> </td>
</tr>
<tr>
<td> </td>
<td>1</td>
</tr>
<tr>
<td> </td>
<td>2</td>
</tr>
<tr>
<td> </td>
<td>3</td>
</tr>
<tr>
<td> </td>
<td>4</td>
</tr>
</table>
<div class="PageNext"></div>
<hr align="center" width="90%" size="1" noshade class="NOPRINT">
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
</body>
</html>[/CODE]
查了以下资料 我想这样应该可以了
呵呵 我的没有打印机 不知道好不好用啊