110,499
社区成员
发帖
与我相关
我的任务
分享
DataTable dt = rpt.GetInstallTotail(“”);
ReportDataSource rds = new ReportDataSource("InstallPeoTotal_ds", dt);
ReportParameterCollection pars = new ReportParameterCollection()
{
new ReportParameter("Title", title),
new ReportParameter("CreateUser", SysVariable.LoginUserName)
};
this.reportViewer1.LocalReport.SetParameters(pars);
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(rds);
this.reportViewer1.RefreshReport();
本地运行代码是没问题的,放到其他电脑运行就会出现这个错误,我要实现的就是数据展示