Eliminating extra / blank pages (they have headers) in reports in Microsoft Report Builder / SSRS 18.4 - reporting-services

I will start by stating that I have read through and tried numerous suggestions without success.
I have a report that is populated from a local SQL server and a data set.
I have checked each of the "Row Groups" and they do not have any page breaks.
I have a header and a footer as well as a parm field using a calendar.
All of the data is correct.
The issue is I am getting extra pages that have just the header and footer but no data or column headings.
I have made sure that my paper size is correct (see below) and that my work area is the same size, and in this case, slightly smaller than the page size minus the margins.
I have it set to landscape.
Paper size and margins.
I have verified that the "ConsumeContainerWhitespace" is set to True.
ConsumeContainerWhitespace
I systematically deleted each item in the work space, including the "Row Columns", while checking the resulting pages.
After deleting everything in the work space except the link for the data (this breaks the report), the extra pages persist.
I tabbed through each item making sure none of them exceeded the work space size.
Can someone please point me in the right direction as to what I am missing! :-)
Thank-you in advance!

Related

SSRS Report not correctly suppressing white space

I have seen some mind-binding situations with SSRS reports in my few years of using it, and I've been able to design around most issues and get it to do everything I've been asked to do.
But apparently, not something extremely simple!
I'm using Visual Studio 2019 version 16.7.2 with the Microsoft SQL Server Reporting Services Designers
version 15.0.19124.0 installed. There's no data bound to the report, this is just a simple design concept.
I have a report that has a static custom page size (in centimetres), interactive size and no margins (12.8 x 17.8cm).
The body size is deliberately set to make it a two page report (2 x the page height).
'ConsumeContainerWhiteSpace' on the report properties is set to true.
Page 1 has an image, consuming the entire space of Page 1 (size of 12.8 x 17.8), with a Text box placed near the bottom right of the image (overlaying it, but not exceeding the width or height of the page, and is set to not grow).
Page 2 is exactly the same, with the content starting where Page 2 would and should start (0, 17.8). However, the Page 2 content is set to hidden (hidden = true, on both the image and the textbox).
When previewed, the report renders two pages, one of which is blank.
If I take the Page 2 content textbox off, and preview it, the report renders as one page (as I need it to).
The same issue occurs if I replace the textbox with a Rectangle or Tablix (the two objects I really need to use in this report as well as the textbox located where it is) and set them to hidden.
Moving any of these objects to the top of Page 2, still results in the same behaviour.
It seems that certain objects, despite being hidden, have space allocated that can't be 'rolled up / truncated / shrunk'. Is this 'by design behaviour'?
Is there some form of magic-witch-craftery I'm missing here to get this to work, or simply something I'm not understanding... ?
Thanks for reading!
Note: So far I have tried the 'Switch to inches, then back to centimeters' solution mentioned in other posts along these lines, have varied 'Keep together' properties, checked 'CanGrow' and 'CanShrink' property changes - all of which have not helped find a solution.
The report body should be set at most wide enough to fit on your output page and long enough to hold all your report items. When you want different items to appear on a new page, put them in a container with a page break set either before or after (whichever is most appropriate). This can also be handled in a data driven manner using page breaks on table groups.
There is no requirement to have white space within your report design to 'fill up' the rest of the page on the rendered report.
If you want anything to appear at the bottom of the report, simply put it in the footer section. If you want specific things to appear at the bottom of the page of different heights on different pages, that is more of a challenge and will usually require some clever data driven spacers within the report body.

Access 2010: Report Prints Three Extra Pages

In Access 2010, I have a button that launches a macro that prints a report. Button->Macro->Report. The report is only on one page and is 8.1 in width. It will not go to 8.
I have deleted the header and footers and all that is left is the detail portion. It is contained on one page, but it prints 3 extra pages. I have been scouring Google and messing with the report properties, but nothing has stopped it from printing 3 extra pages.
The page margins are set at .25" all around.
I'm not sure what you mean when you say you "deleted" the header and footers. Under design view, set the "visible" property for the headers/footers to "no" to see what is causing the issue. Often it is the footers that cause weird page breaks. If you find out that a footer is the culprit, you could make an additional group level with only a footer and copy all the data in either the page or report footer into that other footer. I usually have it group on expression "=1" and set the report footer "visible" to "no".

Crystal Reports 11 - Useless blank page is added with just group headers that have data

I have a weird problem I have never seen before using Crystal Reports.
I built a complex PDF monthly report for a bank that generates over 200 pages. The specifications took months to adjust with the client but it works perfectly now, showing all the data it's supposed to, all sorted right and with the right headers.
But for some reason the report inserts quasi-blank pages rarely and seemingly randomly before it shows data. These pages aren't entirely blank, all my headers including group headers show, but no details. The correct data shows up a couple of pages later but these useless pages keep popping up in the report no matter what I do with Section Expert. To be clear the headers and the details aren't separated. The headers also display fine in the page with the right data, they just duplicate to the extra blank pages before that.
Here is a sample:
NO "insert blank page" box is checked in any of my sections except the uppermost level of data, which works fine, but these extra pages are not inserted at the end of each group for that level. They are inserted randomly sometimes right in the middle of a coherent section.
I also verified the "Keep Together" option, and it is checked for the 4 lowest levels including the details, so I considered data too big to fit on the same page with its headers but the probleme is rare, random and the data overflows perfectly when it does appear (as on page 3 in my example).
And checking all those boxes off didn't change anything.
There are no suppression formulas and the only suppressed sections are GH1 and GH2, but they are suppressed all the time, unconditionally. I tried adding a conditionnal suppression formula to the headers if there is no data, but the problem is, there is data. The headers just seem to be duplicated uselessly.
The problem doesn't seem tied to any specific change in header value. In my example it changes when the report hits Common Stock Equities for a certain portfolio but doesn't occur when another portfolio displays its Common Stock. And I check the data in my data source, everything is consistent between the rows of data that this happens to and those that don't.
I ran out of ideas on how to get rid of these extra pages. Anyone know what's happening in my report?
Thanks a bunch.
Try toggling 'Keep Group Together' for the groups to see if it has any effect. You'll find the option by right clicking on the group, choose 'Change Group' (to bring up the Group Expert), and on options tab.
This option is often overlooked since 'Keep Together' in the Section Expert is more visible.
(You may also want to look at turning off 'Keep Together' to see how that affects your report)

ssrs 2008 extra page at end - checked usual suspects - how to find cause?

I can't seem to figure out what i'm doing wrong here...thought I might be overlooking something not common as the cause for this so I decided to post a thread.
Report is set for 8.5 x 11 with .25" margins on all sides
Body is 7.89 x 2.90 with all padding set to 0 for report items.
I use a footer but it is the correct width.
I use a hidden detail row that expands from my normal detail row, but the overall width is still less than 8".
I attempted to make a new report and copy the reportitems over so that if I had made a configuration issue I might find it. But the new report behaves the same as the original one I did.
ConsumeContainerWhitespace is True. The tablix on my report is the only item that can page break after and that option is unchecked.
I changed my footer to not appear on last page and it still leaves a blank page for me.
Any thoughts?
I know it may sound funny..but i have tried this many times whenever I got some issue like this..and I resolved the issue..
sometimes the report object may extend in length by very small inch..and you cant find out that..
What you can try is:--Give some background color to the object such as tablix and then render the report in some format like PDF..if its length giving you next page then the some part of color you can see on that next(blank) page..from that you can get idea about the size of perticular report item which is causing the issue.
I hope this will help you..
I had to throw out the current copy of this report and recreate it. 2nd time through I didn't get the extra space causing the extra page. I wish I could have figured out what caused it because the hand grenade approach is not the one I always like to take.

How to get rid of the extra blank pages in PDF version of SSRS report?

I tried creating a report using a sub report. When I exported it to PDF I have noticed that there are extra blank pages in the PDF.
I made it clear that body width + left margin+ right margin <= report width.
But still it gives the blank page. sub report as individual working great.
Also I am calling the sub report from with in a list in main report.
I tried to set up a page break after list . but it looks like its not working.
I want the next list displayed on a new page.
How do I achieve these.
There is no single property available for this in SSRS. You have to check for couple of settings
In report properties, set "ConsumeContainerWhitespace" to TRUE
In tablix properties, set page braek location to NONE
IF still the issue persists, check alignment/margin of objects like rectangle,tablix etc.
A few things to look for:
Check the "parent" and subreport for any controls that are in your margins (or may grow into the margins). Setting the width doesn't necessarily force the controls to that width.
check for any controls that overlap. I've had strange things happen because of that (especially in SSRS 2005).
checking the "Print Layout" while previewing helps find most issues like this at design time (before exporting to PDF).
For the hard break with your list not sure what is goofy there. I usually use a table with groups and set the page breaks on the appropriate group. Depends on the data though.
HTH
Check top and Bottom margins, for me reducing.1 of bottom margin solved the issue.
In my case (with Report Builder 2017) the solution to get rid of a blank extra-page was to reduce the width of the body.
The body can be selected by clicking on a free space in the report on the same height than the Tablix is located.
You then get the "Body properties" shown in which you can reduce the size.
The size of the body should be less than page width - left margin - right margin.
For me it was a problem with the sub report's width which caused extra blank pages in the exported version. Reducing the width solved the issue.
If still someone having an issue with blank pages in PDF, just increase the width of the main report to a few inches. Keep reducing to an optimum value by checking the report. No need to change anything else.
For me when I increase the width for pagesize report from 21 to 23 cm,
It was not generating extra empty page. Because of few elements total
size of my report's element was greater than 21 and less than 23, that
is why I changed to 23cm and works for me.
In my case I have only one page and I was working with .rdl file.
When exporting to pdf and the report contains a sub report where the sub report is grouped on an item from parent report.
Do not use the list control in the parent report to group sub report. Use the table control.
The list control will cause blank pages while the table control does not