我有一个DataTable
作为参数我想从中做出报告,但它对我来说根本不起作用......
无论如何,这是我的RDLC文件的图像:
这是我的代码:
this.reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.Reset();
reportViewer1.LocalReport.ReportEmbeddedResource = "Report1.rdlc";
Microsoft.Reporting.WinForms.ReportDataSource rprtDTSource = new Microsoft.Reporting.WinForms.ReportDataSource();
rprtDTSource.Name = "DataSet1";
rprtDTSource.Value = dt;
this.reportViewer1.LocalReport.DataSources.Add(rprtDTSource);
this.reportViewer1.RefreshReport();
,这是报告表格中的错误