RDLC 报表打印只重复打印表中第一条记录
如题,当表中有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;