【问题标题】:RDLC Report Error While Exporting Report to Excel将报告导出到 Excel 时 RDLC 报告错误
【发布时间】:2016-09-03 20:41:33
【问题描述】:

我正在处理 Windows 应用程序中的 RDLC 报告。 我的数据在报表查看器中正确显示。但是,当我使用 Reportviewer 选项单击将报告导出到 Excel/Word/Pdf 时,错误会闪烁。

如何知道reportviewer 内部发生了什么,因为直到this.reportViewer1.RefreshReport(); 这一行没有错误

我发现了同样的问题,但打印选项有错误
如何解决这个问题??
给我链接或任何建议

 private void RDLSViewer_Load(object sender, EventArgs e)
        {
            ReportDataSource datasource = new ReportDataSource("DataSetManifest", dtManifestReport);
            this.reportViewer1.LocalReport.DataSources.Clear();
            this.reportViewer1.LocalReport.DataSources.Add(datasource);
            this.reportViewer1.RefreshReport();
        }

【问题讨论】:

    标签: c# winforms rdlc


    【解决方案1】:

    我认为这是由visual studio的窗口布局系统引起的。

    在 Visual Studio 工具栏中转到窗口选项 -> 重置 Windows 布局

    我发现其他人在发帖...

    “重置 Windows 布局”后问题消失了。

    【讨论】:

      猜你喜欢
      • 2014-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-07
      • 2013-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多