reportingviewer 10.0.0.0 中的相关对象给出 #error

发布于 2024-08-29 15:39:15 字数 355 浏览 2 评论 0原文

在我的 VB.net 应用程序中,我使用 Linq2SQL 和 Reportviewer 以及 RDLC 报告。 在 Visual Studio 2010 中,他们升级了此报表查看器组件,以便您可以使用 2008 年更新的 RDL 规范。 现在我在显示相关对象时遇到问题。 例如,假设您向报表的数据源提供订单,然后您可以显示类似 Fields!Customer.Value.Name 的内容,其中 Customer 是相关实体。

我的即时窗口中也出现错误: 警告:textrun“Name_1.Paragraphs[0].TextRuns[0]”的值表达式包含错误:指定的操作无效。 (rsRuntimeErrorInExpression)

In my VB.net apps i make use of Linq2SQL and Reportviewer with RDLC reports.
With Visual Studio 2010 they upgraded this reportviewer component so you can use the newer RDL specification from 2008.
Now I've a problem to show related objects.
For example assume you provide an order to the datasource of the report and then you can show something like Fields!Customer.Value.Name where Customer is a related entity.

I also got the error in my immediate window:
Warning: The Value expression for the textrun ‘Name_1.Paragraphs[0].TextRuns[0]’ contains an error: The specified operation is not valid. (rsRuntimeErrorInExpression)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

做个ˇ局外人 2024-09-05 15:39:15

该问题已报告给 Microsoft 此处 但到目前为止还没有解决方案。唯一的解决方法似乎是将相关对象所需的属性公开给顶级对象。

The problem has been reported to Microsoft here but as yet there is no solution. The only workaround appears to be exposing the required properties of the related object to the top level object.

固执像三岁 2024-09-05 15:39:15

Reporting Services 团队的成员有 对此问题发表了评论,并解释了其原因以及为何花了这么长时间才得到修复。该解决方案已包含在 VS2010 SP1 中,目前处于测试阶段。

A member of the Reporting Services team has commented on this issue and explained it's cause and why it's taken so long to get a fix. The solution has been included in VS2010 SP1, which is currently in beta.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文