各位大虾,遇到一个问题郁闷死了!文件服务器上有代码文件,用SVN做版本控制!我在一个窗体上放置了reportview控件,新建了一个report手动载入控件,但是始终看不到!就是提示一句话 A data source instance has not been supplied for the data source 'dataset1';不知为何:
代码如下:
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.ReportEmbeddedResource ="Print_report_module.report1.rdlc";
this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("EmployeeInfo", PcurrentEmployeeInfo.ToList()));
this.reportViewer1.RefreshReport();
Print_report_module为一个文件夹