<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)>
<input type=button value="打印OK" onclick=" return myprint(this);">           
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>

解决方案 »

  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)>
    <input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
    <input type=button value="打印OK" onclick=" return myprint(this);">           
    <input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
    以上的代码,在ASP.NET中能用吗?分马上给
      

  2.   

    我拷贝到ASPX页面中好像不能用阿!!
      

  3.   

    经过提交后,好象就会出问题,
    起码我碰到过,URL会变成:http:///
      

  4.   

    <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)>
    <input type=button value="打印OK" onclick=" return myprint(this);">           
    <input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
    能行呀?你复制后,删除<object>之间的代码</object>我试过用行呀/