首页 > 慧问 > 频道

fastreport.net 打印数据问题

发表于2019-05-10 回复:0 查看:2863  |  
在模板中 如果不设置DataSource,只能打印一张!但是如果设置DataSource,会打印所有的数据,而不是GetData查询出来的数据; 注释:代码如下 <pre class='brush: csharp'> public ActionResult TestPrint() { DataSet ds = GetData(); webReport.Report.RegisterData(ds); webReport.Report.Load(this.Server.MapPath("~/App_Data/圆通电子面单(第一版).frx")); //直接打印 webReport.Report.PrintSettings.Printer = "TSC TTP-342 Pro"; webReport.Report.PrintSettings.ShowDialog = false; webReport.Report.Print(); return View(); }</pre>
0个回答

打破零回复...

回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP