打印预览:
<script language="JavaScript" type="text/javascript">
function printPreview() {
var e = event.srcElement;
e.style.visibility = "hidden";
WebBrowser1.ExecWB(7, 1);
e.style.visibility = "visible";
}
</script>
<object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<a href="#" onclick="printPreview()">打印预览</a> Hell World