SSRS Export to Excel print format not default to 11x 17 and landscape - reporting-services

On my SSRS report I have set the Report Properties to Landscape, paper size to Tabloid and 17 width by 11 height with 0.25 margin. After I deployed the report and ran it on the web. Followed by exporting to Excel and printed it and it did not come out the format I have set on SSRS. Also, the I have bold the report lines by section based on the group and in Excel the bold report lines are not there.Please advise. I am thinking of moving to Crystal report might solve the problem. Any ideas. Thanks.

This isn't quite how page size works in SSRS. When you set the page size attribute, this will really only effect two things in SSRS.
How the report is displayed online. This is set via the Interactive Page Size setting, and really, only the height matters here.
Page Size sets the page size on the PDF export. We have this because PDFs are supposed to be a portable format, commonly used for printing.
Excel doesn't have this attribute as a part of the file. If you want to print to a specified page size/format, that's all handled at the time of printing by the print dialog.

Related

Change SSRS Report page orientation Dynamically

I'm working on SSRS Reports.
Currently I am facing one issue. I have two tablix in a single Report. Now, Tablix1 or Tablix2 will be visible in either condition.
For example: I am passing One Flag as True then Tablix1 should be visible and for this layout would be Landscape and I am passing Flag Value as False then Tablix2 should be visible and for that layout would be Portrait.
For Show/Hide Tablix I am having solution but what about orientation?
How can I achieve this in SSRS Reports? Can anyone please help me or guide me?
Thanks in advance!!
I can only answer this question in regard to 2012, but it is not possible to achieve this with a single report. Please see my caveat below. In SSRS, you have two properties that determine the size of the report and where breaks should occur. InteractiveSize determines the size of the page when viewed in interactive formats (i.e., RDL or MHTML4.0). For all other report formats (e.g., Word, PDF, Excel, CSV), the PageSize determines the size of the page when viewed in those non-interactive formats.
In SSRS 2012 as well as earlier versions, expressions are not accepted in the InteractiveSize or PageSize fields. This means you cannot reference variables or parameters or field values.
Caveat
I took an existing report I had created with a page size of 8.5" (width) by 11" (height) that is normally two or three pages wide. I then created a blank report and added an 11" x 8.5" subreport pointing to my original report. When I exported this to PDF, I got an 11" (wide) by 8.5" (tall) PDF with the spacing and page breaks as you would expect for a landscape document. However, when I exported to Word, Microsoft Word crashed and burned. This may have something to do with the fact that the PDF exporter uses hard page breaks and the Word exporter uses soft page breaks. In any event, depending on what you need, you may be able to use a single report (i.e., a single place where the logic and datasets are set up once only) and then reference that report as a subreport elsewhere with a different page size. Just be sure to thoroughly test the result in any allowed export formats.
I hope this helps!

SSRS Page Widths

I have an SSRS report with an interactive size of 8.5/11, margins set at 0.25, the page size is set to 8.5/11, the body is 8.0w and the report is 8.0w, but for some reason when I export to excel it doesn't fit on a single page. Any ideas what could be causing this? I have other reports with the same setup that do fit to a page. Same printer setup as the other reports too.
Excel accounts for a very tiny amount of space for the grid separation. So when you export to excel the report is widened and lengthened slightly. Usually its not an issue but if you have a large number of columns in said report the number of separations is going to be greater pushing you over that tipping point. You can do 1 of 2 things. 1. Change the width of your report to account for this space added by excel or 2. export to PDF for printing purposes as it is not going to alter the width of your report and allow for your expected printing outcome.

SSRS limit data size to page size

In SSRS report, the HTML rendering is displaying around 20 records. Now when i generate the PDF, only 5 records are displayed per page. I want that both the HTML renderer and PDF renderer should be same. Is there any workaround for the same?
The different renderers are rendering the report appropriately for their output. The web viewer is optimised for screen-based reading and generally allows more content per page than the print renderer does as the print renderer is constrained by the paper size that it formats to. Thus you get more pages when rendering for printing than web; however, the content of the report is exactly the same.
The best illustration of this is the Excel renderer - the Excel renderer renders the entire report onto a single worksheet in most cases (for reports with grouping and page breaks set on the group footer it will render each group on its own worksheet). You wouldn't want the Excel renderer to artificially create worksheets to try to paginate your report. It does the appropriate thing which is to include all the data in one big worksheet even though that may be logically thought of as one big "page".
The web renderer page length is determined by the InteractiveHeight attribute of the report (in the InteractiveSize property in the Properties pane for the report) but the interactive height is an approximation rather than a fixed page break setting and your page breaks may still not conform to the print version even though the InteractiveHeight is set to the same length as your target page length.
See this discussion of rendering behaviour for more information on why what you are trying to achieve isn't achievable.

How can I change the body size during report generation?

So I have 1 report, and I need two different version of it when I export to Excel and export to PDF.
I already know how to hide certain report items depending on it being PDF or Excel, but the other problem I'm having is that the table I'm hiding is very wide.
It's for the excel version of the report, which is fine. However, the PDF version of the report now has blank pages because the body of the report is bigger than portrait page size.
Any ideas?
After an exhaustive search, i've basically come to the conclusion that "no, you can't"

Single page display in HTML rendering : SSRS

I have a SSRS report. I am using grouping and my report is having n number of pages.
Is it possible to have the html display of the report in a single page with out page break and the exported version( pdf, excel) have the page break). Any idea. Please share some thoughts.
Thanks in advance
Anna
Short answer: Set the InteractiveHeight = 0
According to Microsoft:
Soft page breaks are calculated at run
time by the control. Although it is
not recommended, you can disable soft
page breaks by setting
InteractiveHeight to 0.
InteractiveHeight and InteractiveWidth
are used by the HTML rendering
extension to provide the equivalent of
PageHeight and PageWidth. Because the
HTML output format dynamically resizes
a report to accommodate drilldown,
drillthrough, and show/hide features,
the report server uses different
properties to support pagination on
dynamic pages.
EDIT Comment Answer:
In the Layout mode, bring up Properties panel. At the top of the Properties panel is a drop down to select which control's properties you are looking at, select Report You will then find “Interactive Size” that includes Interactive Height property.
What version of SSRS? 2008 lets you specify a different page size for interactive and regular paper (ie the html version will render different than say PDF).