reportingviewer 10.0.0.0 中的相关对象给出 #error
在我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该问题已报告给 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.
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.