Bojensen Blogs

SSRS Page Break After X Number of Records « Jeff Prom's SQL Server Blog

 

In SQL Server Reporting Services you can add a page break after a desired amount of records. Here is how you do it.

1. Add a new Row Group and give it a name.
In our example we named our group:
LimitNumberOfRowsPerPageGroup

SSRS Row Group

2. Go to the properties of the Row Group.

SSRS Row Group Properties

3. Use the following expression to group the row on:

=Floor((RowNumber(Nothing) – 1) / 250)

In this example, 250 is the number of records we want per page.

SSRS Row Group Expression

4. On the Page Breaks tab, check the following:
‘Between each instance of a group’
‘Also at the end of a group’

Page Breaks Tab

Go ahead and run the report.
You should now have 250 records per page.

SSRS Page Break After X Number of Records « Jeff Prom’s SQL Server Blog

Comments are closed.