
To add a parameter to the report, in the Field List, right-click the Parameters section, and in the invoked menu, choose Add Parameter.

Select the parameter, and in the Property Grid, set its Description to Rows per Page:, Parameter Type to Int32 and (Name) to rowsNumber.

From the Toolbox, drop the Page Break control onto the report’s Detail band and place it at the top of the detail table.

For the created control, set the Visible property to No, and for its Formatting Rules property, click the ellipsis button, to invoke the Formatting Rules Editor.
In this dialog, click the Edit Rule Sheet… button. The Formatting Rule Sheet Editor will appear.

Now, click the Add button , to create a new formatting rule. Then, set its Visible property to Yes, and for the Condition property, click the ellipsis button, to invoke the Condition Editor.

In this editor, define the following expression for the rule: ([DataSource.CurrentRowIndex] % [Parameters.rowsNumber] == 0) And ([DataSource.CurrentRowIndex] != 0).
Click OK, to save the changes and close the dialog. Then, click Close to quit the Formatting Rule Sheet Editor.

Now, in the invoked Formatting Rule Sheet Editor, click + , to create a new formatting rule.
Set its Visible property to Yes, and click the ellipsis button for its Condition property.

In the invoked Condition Editor, define a logical expression for the rule, (e.g. ([DataSource.CurrentRowIndex] % [Parameters.rowsNumber] == 0) And ([DataSource.CurrentRowIndex] != 0)).
To save the changes and close the dialog, click OK.
Then, click Close, to quit the Formatting Rule Sheet Editor, as well.

To save the changes and close the editor, click OK.
