gpt4 book ai didi

c# - 按组重置 RDLC 报告中的页码

转载 作者:行者123 更新时间:2023-12-01 16:48:56 26 4
gpt4 key购买 nike

这看起来应该很简单。我有一份包含 Tablix 的报告,其中按客户分组强制在组之间进行分页。我希望页码是针对每个客户的,因此页面如下所示:

Customer1 Page 1/2
Customer1 Page 2/2
Customer2 Page 1/1
Customer3 Page 1/4
etc, etc

我似乎找不到重置页码或使总页数成为该组的总页数的方法。

最佳答案

看起来这是不可能完成的,至少在 VS 2012 中是这样。我能够让它在 SSRS 的 RDL 中工作,然后我打开该 RDL 并找到相关部分

<Group Name="MemberId">
<GroupExpressions>
<GroupExpression>=Fields!MemberId.Value</GroupExpression>
</GroupExpressions>
<PageBreak>
<BreakLocation>StartAndEnd</BreakLocation>
<ResetPageNumber>true</ResetPageNumber>
</PageBreak>
</Group>

然后我将其带回我的 RDLC 并插入 <ResetPageNumber>true</ResetPageNumber>进入我的小组。当我在 VS 中再次打开该文件时,显示以下错误。

Deserialization failed: The element 'PageBreak' in namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
has invalid child element 'ResetPageNumber' in namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'.
List of possible elements expected: 'BreakLocation' in namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
as well as any element in namespace '##other'. Line 1812, position 20.

最终结果,我正在将报表移至 Reporting Services。

关于c# - 按组重置 RDLC 报告中的页码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23300494/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com