SSRS Reports change position between instances - reporting-services

I have a report that is perfectly adjusted to be printed on a form with different lines, but it only prints well if I print only one, as the form is continuous, when it tries to print the second it moves slightly upwards, but still it is acceptable, The problem is when you try to print the third, it keeps moving a little up and then in this point is totally wrong, any idea.
Abraham

You need to ensure that your pagination settings are correct.
If you're paper is 11" tall, you need to make sure your page size is also 11" height. If the margins are 1" top & bottom, your body needs to be 9", regardless of what content you have in the body. All white space in the body is included as part of the report. If your body height is less then 9", SSRS may try to include some of the next object on the same page to make better use of the space.
After you've got your pagination set up, export to PDF and use the PDF file to send to the printer.

Related

SSRS Adding whitespace to right of fields

So I'm currently creating a report and whenever I render the report on CRM Dynamics it's adding a ton of whitespace to the right of every field like this:
Bunch of white space
What I've tried so far:
-Changing CanGrow to false (I'm aware that CanGrow only affects if it can grow vertically)
-Adding the table to a new report
-Setting ConsumeWhiteSpace to true
I've been looking for a way to make the table columns static but according to Microsoft's documentation, they should be static by default.
For reference here is how I want the report to look, this is the view I get when getting the preview in Visual Studios: What I want it to look like
Right click the grey space outside of your report and go to properties. Make sure your report is in portrait mode and set your margins. With default margins of 1" your page width should be under 6.5". Drag the border of your page to the left until it is LESS than 6.5" (so you can't see the .5" hash mark). If you adjust your margins to be smaller you can make it a bit wider but I don't recommend less than .5" margins.
I think what is happening is your page is so large the tables are stretching to with the empty space.

SSRS White Space / Blank page Issue

I am having issues with blank pages turning up in pdfs/printing etc.
Reason seems to be the layout of my report.
I have a fixed width corporate header that fits the page. I then have a main report area with a dynamic number of columns grouped across the page.
The main report has a width of approx. 4" on the design screen, leaving a white space to the right of this of 6.5". I know that after the column groups expand out SSRS will try to render 6.5" of white space after it because that is the difference between my header (which I cannot change) and my main data area.
I understand the problem, and why it happens, that much is well documented. What I need to know if anyone has found a work around for this? I can't give management the answer "Sorry, that's the way it is."
Many thanks.
The reports ConsumeContainerWhiteSpace property
Gets or sets a value that indicates whether all whitespace in containers, such as Body and Rectangle, should be consumed when contents grow instead of preserving the minimum white space between the contents and the container.
This can be set by clicking the Report body, going to the properties (F4) and setting ConsumeContainerWhiteSpace to True

Alternate Blank Page on SSRS

I have made a change to a Subreport on SSRS. The subreport should display on the last page of the whole report.
However when running this report as a PDF, a blank page is generated on every alternate page.
The margins and page size have not changed.
What is most likely happening is that part of your report is too wide, and the extra space is printing on the second page. It's usually the report body (it can change as you add columns to your tables) - I would check that first. Just look at the properties and make sure the width isn't wider than what will print on your page.
If you're having trouble identifying which section the extra width is coming from, try changing the background colors on the header, body and footer sections. Set each of them to a different color, then print the report to pdf. You’ll see the colors in the pdf and be able to identify which one is too wide.
Also, make sure you add the margins into your total width as well. If you have .5" margins and can only print 8.5" wide, then your report can't be wider than 7.5"

How can I have a 10cm page footer only on the last page

I am using reporting services 2012 and want to display a group of elements at the bottom of the last page.
I have tried putting this in the footer and hiding the elements for all but the last page, however this doesn't work very well as there is a large blank space at the bottom of all of the preceding pages.
If there was a way of aligning the elements to the bottom of a page that would work, but I cant see any way of doing that. If there was a way to push the elements to the bottom of the page using a rectangle that has a dynamic height, that would also work, but I also cannot find a way of doing that.
Any suggestions?
Unfortunately, page headers and footers must be one constant size in SSRS. That is why you are getting all of that whitespace, and as far as I know, there is no workaround for this.
However, what you can do is page break at the end of your main table / report. Then have another table display the elements you want. Make this second table the height of a full page and put the elements at the bottom. Go into the Tablix Properties and check "Keep together on one page if possible".
If the second table doesn't work, try a subreport.
If you want to have the footer on the same page as the last page of data, this doesn't work. The only way I know of to do that is a major hack: check how many rows come back from the database and calculate how much space they will need to display. Then at the end calculate how big of a rectangle you need to make in between your main table and your second table to push it to the bottom of the page.

How to prevent autoresizing body in SSRS report

I have a report that has a header and footer that are both set up to fill the whole A4 length (minus margins of course) because I have some information on the far right and far left of each of them. Now in the body I have a List Element that allows me to have a tablix report and a chart next to each other. The body is also sized propery to stay within the pagination limits of the report. All should fit on A4 landscape. Tablix and Chart are next to each other however the Tablix will grow to 4 columns. When this happens the Chart is pushed to the right to just fit A4 landscape. However at the same time SSRS dynamically increases the body size and therefore I end up with emptpy pages when I render the report to PDF. Needless to say that this is very frustrating.
Did I miss some essential information or is SSRS implementation of Header/Footer concept just not very smartly done (being part of the body container) because of them I can't reduce the body size so that in case of autogrowth it won't go over A4 landscape size (What I can see as one option to get around this silly behaviour). Best actcually would be to avoid the autogrowth of the body, since there is actually enough space to fit within the given body size for both elements.
any hint would be very much appreciated.
I found the reason. On the Report there is a property "ConsumeContainerWhitespace" which is by default set to false. After setting this to true I got the wanted behaviour. Still I'm not very excited by the design of this "feature" but if you feel that your report body dimensions
are within the report dimensions and you still have to struggle with blank pages in the rendered reports, have a look at this property.