【问题标题】:Adding Chart to RDLC Report将图表添加到 RDLC 报告
【发布时间】:2017-12-16 14:05:12
【问题描述】:

我使用 Microsoft Rdlc Report Designer for Visual Studio 创建了以下报告: 我正在渲染为 PDF。这很好用。

如果我像这样向报告中添加一个空图表:

在尝试将报告呈现为 pdf 时,我会立即收到以下异常:

Microsoft.Reporting.WebForms.LocalProcessingException  An error occurred during local report processing
InnerException: The definition of the report '' is invalid.
InnerException: The report definition is not valid.  Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.

由于图表为空且未连接到任何DataSet,我不明白为什么这不起作用。

只能用来自 SQL Server 的数据填充图表吗?这就是抛出异常的原因吗?

图表可以填充数据集中的数据吗?如果是,为什么会抛出异常?

谢谢

【问题讨论】:

    标签: c# reporting rdlc reportviewer report-designer


    【解决方案1】:

    好吧,所以我有点弄清楚出了什么问题。 我认为我正在使用的一些 nuget 包,主要是报告包的版本错误。

    很遗憾,我不能说出我拥有哪个版本或哪个版本是正确的,但它可能会帮助任何人玩转这些版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-24
      • 1970-01-01
      • 1970-01-01
      • 2014-08-17
      相关资源
      最近更新 更多