ページ印刷Jsコード

1569 ワード

<script language=javascript>   
        function printsetup(){ 
       //         
       wb.execwb(8,1); 
       } 
       function printpreview(){ 
       //                   
       wb.execwb(7,1);
       } 
     
       function printit() 
       { 
       //if (confirm('     ?')) {
       wb.ExecWB(6,6) 
         //wb.execwb(1,1)//   
       ///wb.ExecWB(2,1);//        IE  ,        
       //wb.ExecWB(4,1) //;    
       //wb.ExecWB(6,1)//   
       // wb.ExecWB(7,1) //    
       // wb.ExecWB(8,1) //      
      // wb.ExecWB(10,1)//       
       // wb.ExecWB(15,1) //     ,    
       // wb.ExecWB(17,1)//   
      // wb.ExecWB(22,1)//   
      // wb.ExecWB(45,1)//         
       //  } 
       } 
        
        }
    </script>
 
 
<input value="  " type="button" onclick="javascript:window.print()" />
		<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
			height="0" id="wb" name="wb" width="0"></OBJECT>
		<input type=button name=button_print value="     "
			onclick="javascript:printit()">
		<input type=button name=button_setup value="      "
			onclick="javascript:printsetup();">
		<input type=button name=button_show value="    "
			onclick="javascript:printpreview();">
		<input type=button name=button_fh value="  "
			onclick="javascript:window.close();">