Solved

SSRS printing

Posted on 2016-11-03
3
61 Views
Last Modified: 2016-11-17
I see our reports with say one page, yet when it prints it prints two pages, the second page is just the header. How can we fix that ?
0
Comment
Question by:basile
3 Comments
 
LVL 12

Accepted Solution

by:
Nakul Vachhrajani earned 167 total points
ID: 41872278
Can you check the report definition?

There are properties on the report definition (PageHeight & PageWidth) that you can set based on your paper size to give you an idea of how much you can fit into a page.

Basically, you need to ensure that the report body width plus the margins should be less than the defined page width.

Some things to work around this are: If your UI elements (tablix, etc) are enclosed in a Rectangle, check the PageBreakAtStart and PageBreakAtEnd properties of the rectangle.

Check for items growing horizontally via the "Autosize" or "AutoFit" properties (e.g. matrix data regions and images placed in the body).

Also, ensure that you do not have any explicit page breaks defined on the report definition.
0
 
LVL 24

Assisted Solution

by:Pawan Kumar
Pawan Kumar earned 167 total points
ID: 41872583
Try..

The margins have to be the right size. Ex-

Page = 8.5 x 11.....    Right and left margin .5" equals one inch. so the table or body of the report has to be smaller than 7.5" wide.

Also check on your table cells to see if the Text Box data is growing to much.
0
 
LVL 14

Assisted Solution

by:Megan Brooks
Megan Brooks earned 166 total points
ID: 41872866
If you are using Report Designer, it is forever taking valid report definitions and widening the report body for one reason or another, automatically while you work, so that when you later render to PDF, extra page breaks are introduced. Before you check in changes, you need to make sure that the body width is correct.

There are other possible causes, as noted, but nearly every report I have had to fix because of extra pages in PDF output has had a body with excess width.

Also, don't forget to try setting ConsumeContainerWhitespace to True in the report properties if you are seeing blank pages at the end. It's False by default and, as far as I can tell from the documentation, setting it to the default means "introduce an extra page break at the end of PDF output, sometimes." I'm not sure if this is a useful feature or not, but there it is. It was added in RS 2008, and I have never run into a problem just turning it on, always. If you work from a template, turn it on in the template.
1

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TSQL DateADD update Question 4 29
Sql query 107 29
SQL - insert empty rows into output results 11 24
Sql Query with datetime 3 12
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how the fundamental information of how to create a table.

920 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

18 Experts available now in Live!

Get 1:1 Help Now