【问题标题】:RDLC report viewer not showing data in the report viewer?RDLC 报表查看器未在报表查看器中显示数据?
【发布时间】:2012-07-28 06:44:13
【问题描述】:

我正在使用 SQLITE 数据库,并希望使用报表查看器在使用 C# 的 Windows 应用程序中显示报表。我的代码是

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

但我无法查看报告页面上的数据。请帮忙。如果您有任何有用的链接,请给我,因为我对报告很陌生。谢谢

【问题讨论】:

  • 您的页面加载中有 IsPostBack 吗?

标签: c# winforms reporting


【解决方案1】:

我认为您没有提供类似的报告路径

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多