reporting-docs/knowledge-base/conditional-page-breaks.md

1.3 KiB

title description type page_title slug res_type
Conditional Page Breaks Inserting Page Breaks under certain conditions how-to Inserting Page Breaks conditional-page-breaks kb

Environment

Product Progress® Telerik® Reporting
Rendering Extension PDF

Description

A common report layout includes report groups. Often to visually distinguish these groups, a page break is added to the last group footer section. However, when you have another report section after the group section with PageBreak=After, the design behavior is to push the content to a new page.

This is desired for the different group instances but sometimes, you may want to render a report footer section immediately after the last group footer. In this case, the most straightforward solution is to apply a [Binding]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/using-expressions/bindings%}) to the first group header section:

Solution

Property path Expression
PageBreak = IIF(RowNumber() > 1, 'Before', 'None')

PageBreak enum values are as follows:

  • None

  • Before

  • After

  • BeforeAndAfter