SSRS Page Widths - reporting-services

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.

Related

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

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.

How to write code to automatically resize table in ssrs reporting services before printing

I have a bunch of reports that are all tables in reporting services that I need to format for printing. Most print fine, but some have rows that take up more room than there is on the page and it cuts them off for printing. Is it possible to write a program in the custom code box to check if the rows are longer than the page and if they are resize it. How can I do this, what references do I use?
You don't need to resize tables for printing - just ensure your page, report ans margin sizes all match the size of paper you are printing to - A4?

Reporting Services. Different cell width and height

When I use my report on a server, I get normal width and height (CanGrow is True) of the cell.
When I try to save as Excel, I have width of the cell less then I expected.
When I try to save as Word, I have bad cell`s width and height.
Finally when I try to save as pdf, I have normal cell`s width and height, but have a blank page after after each page of the report.
What am I doing wrong?
Exporting SSRS to Excel and Word can produce unexpected (and undesired) behaviours.
Excel
Regarding the export to Excel - according to the answer on this page
Excel itself doesn't really have a concept of CanGrow and CanShrink - rather, all it can do is
keep row heights at a static value (which it will do if both of those properties [CanGrow and CanShrink] are False), or
"snap to fit".
This does mean you are forced, if you want to export the data to excel, to define a static row height for the report
Word
I can recreate your problem - unfortunately this is a "feature" when exporting to Word. The MSDN reference specifically states
Text boxes grow when they contain non-breaking spaces.
PDF
PDFs creating a blank page between report pages is usually an indication that your Report Body is wider than your printed page (in Report Properties). Check your report is not too wide - even if there is no data displayed in the whitespace.

SSRS report extra page

I have modified a sales invoice report of Dynamics AX. When I deploy and open report in Ax it shows that report has 1 page, but if I export it as PDF or if I print it out then it has two page, first page as it should be and second extra page only with header / footer. I tried to reduce size of header / footer but the problem isn't solved and also if I reduce them fields are moved from wanted positioned as we use pre-printed papers to print reports.
How can I get rid off extra unwanted page?
Often I find that problems like this are related to the page size, report size, and margins. Take a look at the Report properties and take note of the page size and margins. Make sure that in the Body properties of your report, the size is less than the difference between the page size and margins.

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"