Solved

Conditional Pagebreak in SSRS

Posted on 2012-03-14
4
2,334 Views
Last Modified: 2012-03-15
Hi Experts,

How experts, I need to create a pagebreak based on a pagebreak parameter in SSRS 2008R2.

If the the parameter returns a  1 =  pagebreak and if it returns 0 no page break. Would would be the best way to accomplish this task and what would be a sample of the code?


Thank You
0
Comment
Question by:December2000
  • 2
  • 2
4 Comments
 
LVL 37

Assisted Solution

by:ValentinoV
ValentinoV earned 500 total points
ID: 37723589
You can use a Rectangle for that.  Put it where you'd like to have the pagebreak.  Make sure to activate the "Add a page break before" property of the rectangle.

Then use the Hidden property to either have a page break or not (when the rectangle is hidden, there's no page break).  The Hidden property allows expressions so you'll be able to use your parameter.
0
 

Author Comment

by:December2000
ID: 37724493
Thank you by: Valentino, Can you gice me an example of how I would write the expression in hidden property? If the the parameter returns a  1 =  pagebreak and if it returns 0 no page break.
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 37724549
Something like this:

=Not Parameters!PageBreak.Value

The expression above assumes that your parameter is called PageBreak and that its type is boolean.

In case the parameter is of type integer, then you'll need an expression as follows:

=IIF(Parameters!PageBreak.Value = 1, false, true)
0
 

Author Closing Comment

by:December2000
ID: 37724717
Thank you!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how the fundamental information of how to create a table.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now