我做了个打印页面,怎么才能做到打印时不把网址打出来,不想要那个网址,要用程序来解决请教高手,谢谢

解决方案 »

  1.   

    学习了!
    web 网站建设
      

  2.   

    文件-->打印-->页面设置-->页眉,页脚去掉
      

  3.   

    <object id=factory style="display:none"  
      classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"  
      codebase="../global/smsx.cab#Version=6,4,438,06"> 引用这个控件 , <script type="text/javascript">      function pagePrint() {

             factory.printing.Print(true)          btn.style.display = '';
         }
    </script>
    //手动建注册表
    有些机器需要手动注册DLL文件的!
    c:
    cd \windows\system32\
    regsvr32 mcprintx.dll
    regsvr32 mcprintxu.dll
    regsvr32 mcscripx.dll
    regsvr32 mcmaxipt.dll
    regsvr32 mcsecmgr.dllok
      

  4.   

    这个除了设置浏览器,就只能用5楼的方法了:用控件。或者干错把你这个要打印的页面做成pdf格式输出到浏览器让客户打印。
      

  5.   

    function JavaPrint() {
                document.all("Prints").style.display = "none";
                window.print();
    }
      

  6.   

    修改注册表或打印设置,或选择其他的web打印控件
      

  7.   


    <head>
    <script type="text/javascript">
    function printsetup(){ 
      // 打印页面设置 
      wb.execwb(8,1); 

    function printpreview(){ 
      // 打印页面预览 
      wb.execwb(7,1); 

    function printit() 

      if (confirm('确定打印吗?')){ 
      wb.execwb(6,6) 
     } 
    }
    </script>
    <style type="text/css" media=print>
    .noprint{display:none;}
    </style>
    </head>
    <body>
    <script type="text/javascript">
    AC_AX_RunContent( 'classid','CLSID:8856F961-340A-11D0-A96B-00C04FD705A2','height','0','id','wb','name','wb','width','0' ); //end AC code
    </script><noscript><OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT></noscript>
    <p align="center">
    <input type=button name=button_setup value=" 设  置 " class="noprint" onClick="javascript:printsetup();"> 
    <input type=button name=button_show value=" 预  览 " class="noprint" onClick="javascript:printpreview();">
    <input type=button name=button_print value=" 打  印 " class="noprint" onClick="javascript:printit()"> 
    <hr align="center" width="100%" size="1" color="black" class="noprint">
    </p>
    <P>自己要打印的内容</P>
    </body>以上只支持IE浏览器