可是那些控件是如何实现的呢.比如有个eprint就可以设置打印的边框.

解决方案 »

  1.   

    <script language="JavaScript" type="text/JavaScript"> 

    var hkey_root,hkey_path,hkey_key;
      hkey_root="HKEY_CURRENT_USER";
      hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";  //设置打印页边距
      function pagesetup_null(){
          try{
            var RegWsh = new ActiveXObject("WScript.Shell")
           
            hkey_key="margin_bottom"
            RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0")
            
            
          }catch(e){
          }
      }  
    </script>