<object ID="WebBrowser1" WIDTH="0" HEIGHT="0" 
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> 
</object> 
<input type=button name=print value="print" onclick="WebBrowser1.ExecWB(6,1)"> 
<input type=button name=print value="printview" onclick="WebBrowser1.ExecWB(7,1)">

解决方案 »

  1.   

    <input type=button name=print value="page setup" onclick="WebBrowser1.ExecWB(8,1)">
      

  2.   

    谢谢,纯js有这样的功能么
    打印我知道有 window.print
    打印预览和页面设置有没有对应的js方法?
      

  3.   

    只有通过net_lover(孟子E章)提供的控件才能实现。JS没有“打印预览和页面设置”这样的方法
      

  4.   

    <style>
    @media print {
       .ipt {display:none}
    }
    </style>
    <input class="ipt" value=printvew type=button>
    <input class="ipt" value=print type=button>
    <input class="ipt" value=setup type=button>