在你的网页里增加下面的代码:
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<head>
<title>TestPrint</title>
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
</head>
<body>打印演示<center class='Noprint' style="position: absolute; left:2mm; top:110mm; z-index:1"><p>
<hr align='center' width='90%' size='1' noshade='noshade'></p>
<object id='WebBrowser' classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' height='0' width='0'></object>
<input type='button' value='打印' onclick='document.all.WebBrowser.ExecWB(6,1)'>
<input type='button' value='直接打印' onclick='document.all.WebBrowser.ExecWB(6,6)'>
<input type='button' value='页面设置' onclick='document.all.WebBrowser.ExecWB(8,1)'>
</p><p><input type='button' value='打印预览' onclick='document.all.WebBrowser.ExecWB(7,1)'><br/>
</center></body>
</html>