private void printPat_Load(object sender, EventArgs e)
{
this.reportViewer1.LocalReport.ReportPath = "SoSPlan\\Print.rdlc";
IPat ipat = Common.GetInterface<IPat>();
DataTable Table = ipat.SelectByPatNumber(PatNum,caseName); //ISystemUser User = Common.GetInterface<ISystemUser>();
IDrugList User = Common.GetInterface<IDrugList>();
DataTable userTable = User.SelectByUserID(Context.UserId); this.reportViewer1.LocalReport.SubreportProcessing += new Microsoft.Reporting.WinForms.SubreportProcessingEventHandler(LocalReport_SubreportProcessing);
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet_tblPat", Table));
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet_CaseInformation", Table));
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet1_EP_QX_USER", userTable));
this.reportViewer1.Dock = DockStyle.Fill;
this.Controls.Add(reportViewer1);
this.reportViewer1.RefreshReport();
} void LocalReport_SubreportProcessing(object sender, Microsoft.Reporting.WinForms.SubreportProcessingEventArgs e)
{
IDrugList drug = Common.GetInterface<IDrugList>();
DataTable medications = drug.MedicationsSelect(PatNum);
int ss = medications.Rows.Count;
e.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet2_tblPat_medications", medications));
}大侠们帮我看看啊,提示无法显示子报表,在线等
{
this.reportViewer1.LocalReport.ReportPath = "SoSPlan\\Print.rdlc";
IPat ipat = Common.GetInterface<IPat>();
DataTable Table = ipat.SelectByPatNumber(PatNum,caseName); //ISystemUser User = Common.GetInterface<ISystemUser>();
IDrugList User = Common.GetInterface<IDrugList>();
DataTable userTable = User.SelectByUserID(Context.UserId); this.reportViewer1.LocalReport.SubreportProcessing += new Microsoft.Reporting.WinForms.SubreportProcessingEventHandler(LocalReport_SubreportProcessing);
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet_tblPat", Table));
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet_CaseInformation", Table));
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet1_EP_QX_USER", userTable));
this.reportViewer1.Dock = DockStyle.Fill;
this.Controls.Add(reportViewer1);
this.reportViewer1.RefreshReport();
} void LocalReport_SubreportProcessing(object sender, Microsoft.Reporting.WinForms.SubreportProcessingEventArgs e)
{
IDrugList drug = Common.GetInterface<IDrugList>();
DataTable medications = drug.MedicationsSelect(PatNum);
int ss = medications.Rows.Count;
e.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("REMISDataSet2_tblPat_medications", medications));
}大侠们帮我看看啊,提示无法显示子报表,在线等
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货