我在用了rdlc做了一报表,因为是手动设置了数据源,我自己新建了一个ds_palletid数据集,里面包含了三个DataTable,可是在页面里我把数据源给它的时候,只有显示第一Datablel里面的内容,可别的datatable结果出不来,在网上找来一圈,也没整出一个正确的答案,特向各位高人请教,谢谢,我做的是Web的界面,底下是绑定代码:
ReportViewer1.LocalReport.DataSources.Add(newMicrosoft.Reporting.WebForms.ReportDataSource("ds_palletid_prescan_dt",ds_prescan.Tables[0]));
ReportViewer1.LocalReport.DataSources.Add(newMicrosoft.Reporting.WebForms.ReportDataSource("ds_palletid_sfdctransaction_dt",ds_syspro.Tables[0]));
ReportViewer1.LocalReport.DataSources.Add(newMicrosoft.Reporting.WebForms.ReportDataSource("ds_palletid_loaded_dt",ds_loaded.Tables[0]));
ReportViewer1.LocalReport.Refresh();