打印很简单,直接用window.print();

打印预览如下:

<script   language="javascript">
            function printPreview()

           {
                var e = event.srcElement;
                e.style.visibility = "hidden";
                WebBrowser1.ExecWB(7, 1);
                e.style.visibility = "visible";
            }   

</script>  
  <button   onClick="printPreview()">Print   Preview</button>    
  <OBJECT   ID="WebBrowser1"   WIDTH=0   HEIGHT=0   CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">  
  </OBJECT>