不蒜子无法显示

版权声明:本文为博主原创文章,未经博主允许不得转载的哦=。= https://blog.csdn.net/qq_15602635/article/details/83716467
阅读更多
换一批

rdlc无法显示子报表

09-20

private void printPat_Load(object sender, EventArgs e)rn rn this.reportViewer1.LocalReport.ReportPath = "SoSPlan\\Print.rdlc";rn IPat ipat = Common.GetInterface();rn DataTable Table = ipat.SelectByPatNumber(PatNum,caseName);rnrn //ISystemUser User = Common.GetInterface();rn IDrugList User = Common.GetInterface();rn DataTable userTable = User.SelectByUserID(Context.UserId);rnrn this.reportViewer1.LocalReport.SubreportProcessing += new Microsoft.Reporting.WinForms.SubreportProcessingEventHandler(LocalReport_SubreportProcessing);rn this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet_tblPat", Table));rn this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet_CaseInformation", Table));rn this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet1_EP_QX_USER", userTable));rn this.reportViewer1.Dock = DockStyle.Fill;rn this.Controls.Add(reportViewer1);rn this.reportViewer1.RefreshReport();rn rnrn void LocalReport_SubreportProcessing(object sender, Microsoft.Reporting.WinForms.SubreportProcessingEventArgs e)rn rn IDrugList drug = Common.GetInterface();rn DataTable medications = drug.MedicationsSelect(PatNum);rn int ss = medications.Rows.Count;rn e.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet2_tblPat_medications", medications));rn rnrn大侠们帮我看看啊,提示无法显示子报表,在线等

没有更多推荐了,返回首页