RDLC 报表打印只重复打印表中第一条记录

wyyw1314xb 2011-11-28 12:12:36
如题,当表中有N条记录时,就打重复打印出N条表中的第一条记录。
各位大侠帮帮忙吧。
DataTable dt = Common.GetInterface<Remis.Interfaces.Business.IPat>().TblPatSelect(QryPatNo, edtQryPatName, edtQryZDJG, edtQryStart, edtQryEnd);
//查询用户名字
IDrugList User = Common.GetInterface<IDrugList>();
DataTable userTable = User.SelectByUserID(Context.UserId);

string Path = Application.StartupPath;
this.reportViewer1.LocalReport.ReportPath = Path + "\\SoSPlan\\ComprehensivePat.rdlc";
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet3_tblPat", dt));
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet1_EP_QX_USER", userTable));
this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
this.reportViewer1.RefreshReport();
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.Percent;
...全文
167 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧