0
我有一個多行數據表。我想將這個數據表綁定到水晶報表。如何從數據表中添加多行到水晶報表
這怎麼可能?
Dsprint.Tables.Clear();
Dsprint.Tables.Add(dtTitle);
Dsprint.Tables.Add(dtitem);
ReportDocument Rpt = new ReportDocument();
string filepath = Application.StartupPath.Replace("bin\\Debug", "") + @"\CrystalReports\CryDayReport.rpt";
Rpt.Load(filepath);
frmCrystalReportViewer newReportViewer = new frmCrystalReportViewer();
Rpt.SetDataSource(Dsprint);
Dsprint.WriteXmlSchema(Environment.CurrentDirectory + "\\DayReport.xsd");
newReportViewer.crViewer.ReportSource = Rpt;
newReportViewer.ShowDialog();