RDLC报告查看器不在报告查看器中显示数据?
问题描述:
我正在使用SQLITE数据库,并希望在使用C#的Windows应用程序中使用报表查看器来显示报表。我的代码是RDLC报告查看器不在报告查看器中显示数据?
DataSet ds=rel.show_data1("site_master");
this.reportViewer1.Reset();
ReportDataSource rds = new ReportDataSource("test_rds", ds.Tables[0]);
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(rds);
reportViewer1.Visible = true;
reportViewer1.LocalReport.Refresh();
但我无法查看报告页面上的数据。请帮助。如果你有任何有用的链接,请给我,因为我是非常新的报告。由于
答
我觉得你没有提供的报告就像
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report.rdlc");
的路径你有你的页面加载一个的IsPostBack? – Kerieks 2013-08-20 08:45:57