Solved

ssrs 2012 suppress page break on last occurance of group

Posted on 2014-03-26
4
2,031 Views
Last Modified: 2014-03-28
I have a report with groups that require a page break after each group - no problem there!
at the end of the report I need to run a single line subreport.

On the last group I need to suppress the page break to allow the single line subreport data to appear underneath the last group rather than orphaned on it's own page.

I know where to disable the page break GROUP >PageBreak > Disabled > Expression

I cannot work out what expression to use though!

Any ideas would be greatly received...

Regards
0
Comment
Question by:splanton
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Koen Van Wielink
ID: 39957923
There are a few options you could try. The simplest one depends on your design. Is it possible to have the page break BEFORE each group rather than after? This would mean that after the last group is generated no more page break would occur.
Alternatively, you could include a counter in your SQL query which counts the total number of groups you will get in the report. This could be more tricky depending on your query and report design. But if you have this, you can create an expression which only adds a page break if the current group count < max group count. Not entirely sure if that would work to be honest, but it's a possibility you could play around with.
0
 
LVL 39

Accepted Solution

by:
Aaron Tomosky earned 500 total points
ID: 39959725
I put a tiny rectangle before each group and assign it as page break after. Nice little trick. Lets you put the page break wherever you want.
0
 
LVL 2

Author Closing Comment

by:splanton
ID: 39961740
Nasty 'bend' of SSRS but we have now adopted it as standard. :)
0
 
LVL 13

Expert Comment

by:Koen Van Wielink
ID: 39961770
I thought it was a really clever solution! Will be using that myself next time. Thanks for the tip Aaron.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Insert to Begin if data exists 2 33
Connect to an SQL server ActiveX 10 29
Location of Dynamics AX Service accounts in SQL 3 16
Where is the Help Section? 8 28
It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only seeā€¦
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question