怎么样在ASP.NET 中实现打印预览? 要用水晶报表吗? 我用C#开发ASP.NET的WEB程序,我想在我的程序中实现打印预览,有什么好的解决办法? 水晶报表可以实现吗?回答任意相关者,都有分。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有一段程序给你:<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT> //这个可能没用 <input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)> <input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)> <input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)> <input type=button value="打印OK" onclick=" return myprint(this);"> <input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)> 如果我想用VS 2005里面自带的水晶报表,可以实现打印预览吗?回答:可以 从工具栏拖个CrystalReportViewer控件给你一段代码ViewReport Rpt=new ViewReport();//创建一个rpt文件Rpt.SetDataSource(ds); //将ds(dataset对象)付给rptCrystalReportViewer1.ReportSource=Rpt;//绑定CrystalReportViewer1.ShowFirstPage();//显示首页面 ViewReport Rpt=new ViewReport();//创建一个rpt文件ViewReport 提示缺少引用,这个要引用哪个名字空间啊? 谢谢 大家好, vs2005使用ibatis连接sql2005报错,求帮助 服务端获取 用户IP,速战速结贴 !!!RangeValidator控件的问题 数据库读取数据生成如下xml SelectedIndexChanged 事件中,为何不能读取数据? 服务器控件如何取js中变量的值? 求助 关于Login控件的 请看代码 ,文件上传的问题 ,谢谢。 大家用怎样vs.net+dreamweaver开发ASP.net项目? 是否每个对象都需要判断是否为null 有没有人有asp.net 1.1版的WebParts控件? 水晶报表中显示重复记录
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
<input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value="打印OK" onclick=" return myprint(this);">
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
ViewReport Rpt=new ViewReport();//创建一个rpt文件
Rpt.SetDataSource(ds); //将ds(dataset对象)付给rpt
CrystalReportViewer1.ReportSource=Rpt;//绑定
CrystalReportViewer1.ShowFirstPage();//显示首页面