下面代码直接放在网页中即可看到效果
<html>
<head>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0 VIEWASTEXT></OBJECT>
<script language=javascript>
function doPageSet(){
WB.ExecWB(8,1)
}
function doPreview(){
WB.ExecWB(7,1)
}
</script>
<style media=print>
.noprint{display:none;}
</style>
</head>
</body>
<table Class=noprint>
<input name="Submit4" type="button" class="go-wenbenkuang" onClick="javascript:window.print()" value="打印处方">
<input name="Submit4" type="button" class="go-wenbenkuang" onClick="doPreview()" value="打印预览"> <input name="Submit4" type="button" class="go-wenbenkuang" onClick="doPageSet()" value="页面设置">
</table>
</body>
</html>