简体   繁体   English

RDLC报告查看器未在报告查看器中显示数据吗?

[英]RDLC report viewer not showing data in the report viewer?

I'm using SQLITE database and want to use report viewer for show report in windows application using C#. 我正在使用SQLITE数据库,并且想使用Report Viewer在使用C#的Windows应用程序中显示报告。 My code is 我的代码是

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();

But i am unable to view the data on the report page. 但是我无法在报告页面上查看数据。 Kindly help. 请帮助。 if you have any useful link please give me because i'm very new to reports. 如果您有任何有用的链接,请给我,因为我对报告非常陌生。 Thanks 谢谢

I think You are not provided Path of Report Like 我认为没有为您提供报告路径

ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report.rdlc");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM