Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6741
  • Last Modified:

Need to export SSRS report to PDF fitting it to page

We have a number of wide reports which our customers wish to have exported to PDF fitting the width down to fit on a single page.  These reports exceed even a US legal page in landscape orientation.  It is understood that if the report is scaled to fit to page it will be unreadably without zoom.

Is there a way to do this?  I understand that ideally the report's dimensions would be set to the dimensions of the target page but given the amount of data the report presents this is not a realistic option for us.

We are using SQL Server 2012.
0
canuckconsulting
Asked:
canuckconsulting
4 Solutions
 
Phillip BurtonCommented:
Are there any adjustments you can make to the report? For instance, instead of reporting in $s, can you report in 1,000s of $s? Are there things which are next to each other which can be underneath each other.

Unless you adjust the report, it seems you have two options:

1. Cramming everything into one page wide - but you say that's unreadable.
2. Printing more than one page wide - but you say that's not what you want.

Therefore, either print on A3 (Tabloid size), or adjust the report so it is readable.

I can't see what else you can do.
0
 
Vikas GargBusiness Intelligence DeveloperCommented:
Hi,

i think you have to set the page margin of the report.

The page size should be >= the size of the content of your report.

If it is tabular report check the width of the table from properties which should be smaller then the report properties page size
0
 
canuckconsultingAuthor Commented:
Thanks guys.

Phillip Burton - you mention the first option of cramming it into one-page wide without adjusting the report.  How can this be done?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
>Is there a way to do this?
No.  SSRS does not have a 'Fit on 1 page height by 1 page width' like Excel does, and as the above experts state the only means you have to ensure that the report fits on one page is to eyeball the report dimensions and margins and make sure they fit the page.

That, and if your report has any matrix/tablix objects, make sure the data/data set is such that the number of columns/columns and rows fit on one page.
0
 
Phillip BurtonCommented:
>> you mention the first option of cramming it into one-page wide without adjusting the report.  How can this be done?

I thought you had already done that. Basically, printing a report to a PDF using a big enough page size! You can then print it out on paper to whatever size you want. But if it's unreadable, I don't see how that would help you.
0
 
planoczCommented:
I have  done a lot PDF reports with SSRS.
The best thing to do is re-structure your SQL querys to use less data.
You will have to make more than just one report (per your old querys) to see all the data you want.
The customer (user) will like this better for readablity and easier to write corrections on the report.
You can also going to a smaller font; I use 9pi.
0
 
canuckconsultingAuthor Commented:
Thanks...ended up resizing the report page size to custom (and ridiculous) dimensions to meet the customers requirements.  I expect longer term they will agree to reformat the report to be of a more reasonably width.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now