现在需要打印的东西,一张报表上,有多个表格,并且每一个表格的行数也不一样,数据来源多个datatable,
我以前写的代码
this.reportViewer1.RefreshReport();
ReportDataSource rds = new ReportDataSource("印字数据集_DataTable1", gongyong.dagy);
reportViewer1.LocalReport.DataSources.Clear();  //先把以前的清空
reportViewer1.LocalReport.DataSources.Add(rds);
reportViewer1.LocalReport.Refresh();  //localreport 控件本地报表
同一个报表只能来源于一个datatable, 不支持多个,
请高人指点一下,如何一张报表上支持多个表格,来源多个datatable