Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional Page breaks at group level in SSRS2008 R2 reports

I have a report in SSRS 2008 R2. This report consists of one table containing several grouping levels. If the customer requests to see all the detail them I want a page break at the second grouping level of the table. If only the summary details are requested then I do not want the page break as that will cause unnecessary paging. How can I conditionally control the page break at the group level in a table?

The summary details are calculated and returned differently from the sql so I do not want to hide rows, just turn page break on or off.

like image 417
Roger Scoffield Avatar asked Mar 20 '13 00:03

Roger Scoffield


People also ask

How do I insert a page break in paginated report?

On the design surface, right-click the corner handle of the data region and then click Tablix Properties. On the General tab, under Page break options, select one of the following options: Add a page break before. Select this option when you want to add a page break before the table.

What is Page Break in SSRS?

What is Page Break in SSRS Report - SSRS Interview Questions and Answers. Page break is the way to control the contents on each of the page. We can introduce the page break between Data Regions, Rectangles and also between the Groups created in the Data Regions.


1 Answers

You can use expression based page breaks, which, depending on your exact table setup, might be useful.

Basically, you set up a parameter to control whether page breaks are applied.

At the Group level, there are Page Break options - set the Page Break property to what you require, then set the Disabled property to be expression based, something like:

=IIf(Parameters!Break.Value, false, true)

enter image description hereenter image description here

This means the Page Break will only be applied of the Break parameter is set to true.

like image 138
Ian Preston Avatar answered Oct 23 '22 21:10

Ian Preston