ASP.NET中实现打印

怎样才可以调用打印机进行打印并且对纸张类型进行设置呢? 
--------------------------------------------------------------- 
 
<OBJECT  id="WebBrowser"  height="0"  width="0"  classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT> 
<script  language="javascript"> 
function  frmLoad() 

 
WebBrowser.ExecWB(8,1); 
WebBrowser.ExecWB(6,6); 
 
 

</script> 
                                      
                        
--------------------------------------------------------------- 
 
直接调用IE的打印设置; 
 
window.print(); 
--------------------------------------------------------------- 
 
<OBJECT  classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2  id=WebBrowser> 
</OBJECT> 
<script  language="javascript"  for=window  event=onload> 
       self.focus(); 
       WebBrowser.ExecWB(6,2); 
</script> 
--------------------------------------------------------------- 
 
Ie  6  not  support  WebBrowser

转载请标明出处:http://blog.csdn.net/21aspnet/archive/2004/10/30/160085.aspx

你可能感兴趣的:(JavaScript,object,function,IE,asp.net,WebBrowser)