有办法,必须下载插件了!我给你一个!  
看看
http://lucky.myrice.com/print2.htm  
需要IE5.0 sp1以上支持!  
什么页眉、页脚等都可以进行设置,具体参见公司原址:
http://www.meadroid.com
  

解决方案 »

  1.   

    <object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=5,60,0,360"></object>
    <p><input  type="button" value="Print the page"
     onclick="factory.printing.Print(false)">
     <input  type="button" value="Page Setup..."
     onclick="factory.printing.PageSetup()">
     <input type="button" value="Print Preview..."
     onclick="factory.printing.Preview()">
      

  2.   

    用 window.open打开窗口,关闭十就不会出现提示了!
      

  3.   

    下载插件:
    http://lucky.myrice.com/ScriptX.exe
      

  4.   

    我想申明一句,我不想用插件!!!!!!!!!!!!!
    window.open打开的窗口固然没有提示出现,但第一个窗口怎么用window.open 建立,
    我想寻找最彻底的方法,什么都不用,就用IE本身!!!!!
      

  5.   

    说明:
    不用插件,实现预览只能是IE5.5以上:<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    </object>
    <input type="button" name="Button" value="打印预览" onClick="document.all.WebBrowser.ExecWB(7,1)">打印不出现窗口不可能实现关闭:
    <a href="#" onclick="document.all.WebBrowser.ExecWB(45,1)">关闭窗口</a>
    <object id="WebBrowser" width=10 height=10 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object> 
      

  6.   

    <input type="button" name="Button" value="打印预览" onClick="document.all.WebBrowser.ExecWB(7,1)"><br>
    <input type="button" name="Button" value="关闭窗口" onClick="document.all.WebBrowser.ExecWB(45,1)">
    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
      

  7.   

    必须IE5.5才支持!
    可以看看这个!
    http://lucky.myrice.com/print.htm
    http://lucky.myrice.com/print2.htm