【问题标题】:Hitting tablix exception with rdlc使用 rdlc 命中 tablix 异常
【发布时间】:2019-06-21 06:23:26
【问题描述】:
我尝试使用 Microsoft Visual Studio 2010 向我的 rdlc 报告添加新行。当我尝试生成报告时,我遇到了这个异常。
例外:
Microsoft.ReportingServices.ReportProcessing.ReportPublishingException:tablix 'table12' 的 TablixRows 数量不正确。 TablixRow 的数量必须等于 TablixRowHierarchy 中最内层的 TablixMembers(没有子成员的 TablixMembers)的数量。
如果有人可以帮助我,我真的很感激。
【问题讨论】:
标签:
visual-studio-2013
rdlc
ssrs-tablix
report-designer
【解决方案1】:
对您来说为时已晚,但也许这会对其他人有所帮助。当我从底层 XML 中的 Tablix 节点中删除 TablixRow 节点时出现此错误。显然,TablixRowHierarchy 节点中需要有匹配数量的 TablixMember 节点,通过删除它,它们不再匹配。删除额外的 TablixMember 节点解决了该问题。
错误信息的内容差不多,但直到我弄明白后我才明白(这太常见的故事)。
<Tablix>
<TablixBody>
<TablixRows>
<TablixRow></TablixRow>
<!--<TablixRow></TablixRow> Initially only removed this -->
</TablixRows>
</TablixBody>
<TablixRowHierarchy>
<TablixMembers>
<TablixMember></TablixMember>
<!--<TablixMember></TablixMember> Had to remove this one to fix -->
</TablixMembers>
</TablixRowHierarchy>
</Tablix>