简体   繁体   English

SSRS报告针对不同行数的分页符

[英]SSRS Report Page Break for different number of rows

I am working on a SSRS report where I want to display 15 rows on the first page and 25 rows on the following pages. 我正在制作一份SSRS报告,我希望在第一页上显示15行,在后续页面上显示25行。 I have googled and did not find any anything related to my problem. 我用googled ,没有发现任何与我的问题相关的内容。

Method 1 方法1

Handle it in SSRS 在SSRS中处理它

  1. Create a new parent group 创建一个新的父组

  2. Make a custom group expression 创建自定义组表达式

    =Floor((RowNumber(Nothing)+9)/25)

  3. Under Group properties go to page break option and select the option for page break between each group. 在“组属性”下,转到分页符选项,然后选择每个组之间的分页选项。

Method 2 方法2

Handle it in Sql. 在Sql中处理它。

  1. Create a custom row number using partition function and using similar logic as group expression. 使用分区函数创建自定义行号,并使用与组表达式类似的逻辑。

  2. Group By new row Number 按新行编号分组

  3. Do the page break between the groups. 在组之间进行分页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM