2013-09-30 51 views
0
I want to show the two datatable one above and the other below the previous.  

現在,我正在獲取數據表的第一行,並在下一行中顯示另一個表的第一行。如何在Crystal報表中添加多個數據表,其中一個表格

 Dsprint.Tables.Add(dtReceiptVoucher); 
     Dsprint.Tables.Add(dtPaymentVoucher); 
     ReportDocument Rpt = new ReportDocument(); 
     string filepath = Application.StartupPath.Replace("bin\\Debug", "") +  @"\CrystalReports\crDayReportNew.rpt"; 
     Rpt.Load(filepath); 
     frmCrystalReportViewer newReportViewer = new frmCrystalReportViewer(); 
     Rpt.SetDataSource(Dsprint); 
     Dsprint.WriteXmlSchema(Environment.CurrentDirectory + "\\DayReport.xsd"); 
     newReportViewer.crViewer.ReportSource = Rpt; 
     newReportViewer.ShowDialog(); 

回答

相關問題