注册 登录
编程论坛 ASP.NET技术论坛

打印的问题

hebingbing 发布于 2008-11-05 22:56, 835 次点击
在web中不知道大家都是怎么打印的
水晶报表?
css?
有没有什么好的方法,分享分享……
3 回复
#2
hebingbing2008-11-06 14:07
没有涉及过?
怎么没有人出来发表发表意见啊
#3
c_henry2008-11-06 17:46
可以直接用js打印页面,也可以用word打印
#4
青格儿2008-11-10 09:53
Window.print调用方便,但功能简单,嗯,IEvebBrowser也可以实现打印,但使用IEWebBrowser有时会报JS没有权限的错误。
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>   
<input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(2,1) type=button value=关闭所有>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为>   
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,6) type=button value=直接打印>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(7,1) type=button value=打印预览>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(17,1) type=button value=全选>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(22,1) type=button value=刷新>  
<input name=Button onClick=document.all.WebBrowser.ExecWB(45,1) type=button value=关闭>
呵呵,帮你顶一下,我也想知道。
1