Remove extra white space from first page of SQL Server Reporting Services report - reporting-services

I am using SQL Server Reporting Services 2008 (though this seems to be an issue for me in 2005 also). I have a report that has one page per customer (i.e. paged on customerId). The odd thing I'm seeing is that the first report (i.e. first page of the report) has a bit of extra white space at the top than the other pages. In general this seems to occur when you have a title for the report and paging (so that the first page has the title, but each successive page does not). The report I'm dealing with does not have a title like that, but still has this extra white space.
What I'm wondering is how do I prevent that extra white space on this first page of the report. How do I make each page of the report identical?
I do not have a header or footer applied to the report either.

I've just found the problem i had with extra space on first page.
In my case, the report has a header (with a textbox inside) and in the body a table.
The problem was that on first page (printed from the app) appeared a little space between the header and the table on the body. Well, apart from that the result was perfect.
But when exporting to Excel, first page only showed header, the rest of the pages looked perfect.
The solution: when you add a table (at least in the body), this table has automatically header and footer. I wasn't using header nor footer so i've removed them (first file and last file of the table) and voilá =-D
that's all.

There are a couple of different causes for extra space at the top of the HTML render of a page in any version of Reporting Services. There are a couple of tricks to working around this depending upon the cause of the problem:
Move the title from the Header to the Body of the report. If the title is a label, this doesn't always help.
If you are using a table, then add a separate row to the header of the table. This seems to work very well, particularly when you render to Excel. However, not all report requirements can support this as a solution.
In SSRS 2000/2005, if you are using a container such as a rectangle or group, then the odds that you will having a spacing issue increase. If you can move the title out of the container, then this can help reduce the likelihood of a problem. I haven't tried using the Tablix grouping controls in SSRS 2008, so I can't tell if this will work in SSRS 2008.
If you keep the header and footer objects on even you aren't adding any labels to the regions, then these can lead to extra spaces on the first page.
It is difficult to give you better advice without reproducing your exact problem. If you want to post the code for a sample RDL file temporarily, then I can try to reproduce the problem in SSRS 2008 on my machine and see if I can provide you with a custom solution to your problem.

I'm using Reporting Services / SSRS 2008. I have a table (tablix) with column headers and a subreport in the last row. How do I get rid of the extra space on the first page? It looks ugly when exported to Excel. I've tried moving the table immediately below the report header and it does not work. It seems to enforce a tiny space between the two.

Related

SSRS - how to remove textbox white space on subsequent pages?

It seems so basic and surely resolved by SSRS 2014 SP1 but I can't find a way in Print Layout (for PDF ultimately, but this is simple display) to allow a tablix to render at the top of following pages when a text box displays above it on the first page (eg. address details which would not be wanted on every subsequent page filled by tablix results). This results in unprofessional wasted white space above the results on every page after the first.
The tablix seems "stuck" so it only starts on the page wherever you put it on the design layout (using Report Builder because SSDT not playing with VS2015, but same things should apply). That's when the text box above it naturally doesn't even display on the subsequent pages - why would it, it's done its job and is not repeateable! After all, it's not in a header.
Have set the textbox to CanShrink=true but its still holding the space (because it's content remains, fair enough).
Also tried hiding the textbox (and should be able to do this conditionally on subsequent pages) but whitespace is still there, which is odd and perhaps shows the real limitation.
Applied ConsumeContainerWhitespace=true on report level (you would have thought that would do the trick) but no joy.
Even put both textbox and tablix in a same Rectangle so they become "peers" and maybe control the whitespace better, but nope.
Would prefer the header to repeat and the textbox address to only be on the first page, but another annoying limitation is that for headers there's only a "PrintOnFirstPage" option, not one to print on first page only! Of course, a workaround for that like SSRS Report Builder - Only Show Header On First Page (With Page Numbers) is to move textbox into the body area and hide, but as noted, that still leaves the stupid whitespace on every subsequent page - d'oh!
Surely there's a way to resolve this basic requirement, or maybe I'm missing something obvious?
EDIT: Remembered I never had this problem before and realised it's now only because there are multiple Projects per Worker (sorry, not enough rep yet for pic). If I choose a parameter period with only one project, the line descriptions will continue on the top of any subsequent pages. Only if the tablix header group (Project: [TaskDesc] and Worker) changes does a new page start - but with the tablix at the original page 1 layout location (ie under the textbox), not at the top of the subsequent page where it should be. Hope this clarifies - looks like a bug, odd tablix behaviour, but maybe a workaround?
If you want a non-repeating TextBox, just make sure it's outside of a repeating report element. This means outside of a Tablix or Rectangle.
Just place the TextBox at the top of your page and place the Tablix/Rectangle below it. When the Tablix/Rectangle grows beyond the maximum page height, it will break and continue at the top of a new page.
If you simply think there is too much empty space at the top of the page, try fiddling around with the page margins.

Table being cut off after first page

I'm working on creating a report for a client. I've attached an image to show what I'm expecting (the left side), and what I'm getting after the first page (the right side). The Group Detail section is comprised of a table. I've tried adjusting the Keep Together properties of the table, the group, the section. Just about everywhere I could think of. It prints just fine on page one, and then on page 2, starts getting funky and cut off. I've even set a pagebreak at the end of the Detail Section. Any ideas or suggestions? I've also posted this over on the Telerik forums. However, after I did so, I was told by friends/co-workers that answers there can often be slow in the coming.
When we use Table in Telerik Reporting, we should embed Table in Panel in design time.
so that it can properly fit on page when it gets previewed in ReportViewer and we will restrict a table to being cut or go to second page.

SSRS 2008 R2 creating random blank pages on report?

hoping someone can help.
my report in SSRS 2008 R2 is randomly creating a blank page on the rendered report (and when it's exported to Word). I've investigated it here and Google and tried everything that's been suggested.
My Page Setup under Report Properties is Letter (portrait) 8.5in x 11in, with 0 for all 4 of the margins (I've tried using .25in for all 4, same results).
the size of the body, etc. on the report is 8in x 3.3094 -- nothing is over 8in in width.
"Keep together on one page if possible" is unchecked for all the elements on the report (Lists, tables, body). It produces the same result if it is checked, too.
The ConsumeContainerWhiteSpace on the report is set to TRUE.
Again, when it's rendered on the web browser, I have 6 pages that are fine, then a blank, then several more single pages, then another blank.
Oddy enough, when I view it (on the development machine, not on the web) in PRINT mode, there are no blank pages at all (which is good).
can anyone help?
thanks!
It really sounds like some element is just over the edge of the margin and is creating that blank page. Since it doesn't appear after every page is there any common element that is present on the page before the blank ones that might be near the edge?
I think the HTML renderer must have slightly different margins (or something) when compared to the print renderer in SSDT. Unfortunately for these kinds of issues in SSRS the best way to solve it is to go through all of the possible offending report elements and make sure that they aren't going over the edge.
I'd recommend just moving EVERYTHING away from the right margin and seeing if it fixes it, and then moving things back one by one to figure out where the problem is. Either that or you can make the report margins smaller and see if that fixes it. Even if you need to revert them afterwards and still find the offending element, it could be a good way to test what the problem is.
This could also be caused by an element in the report having the "Insert Page Break Before/After" option enabled. You should check the elements that appear before/after the page break to ensure that option is not set. However, since the issue doesn't happen in all rendering modes I don't think this is the most likely issue.
Figured it out. I clicked on the down arrow on the Row Group, picked Group Properties, and unchecked the Page Break Options/Between Each Instance of a Group and there's no more blank pages :)
thanks for everyone's help!

SQL Server Reporting Services - Remove extra empty space put after a subreport when exporting to Word

I am using Report Builder 3.0 and my main report contains a big table with 2 columns and multiple rows. At some point the two columns are merged into one and contain a subreport. I use 3 subreports consecutively.
My problem is when exporting to Word. After the first and the second subreport Word adds a pretty big white space.
I've tried to figure out if the white space comes from the end of subreports 1 and 2, or from the beginning of subreports 2 and 3.
I have deleted all the margins from the subreports and also set the page size so it would be accordingly to the page size of the main report.
Basically, I am trying to figure out ugly white spaces when exporting a table containing subreports in Word and how to get rid of it.
I hope my desperation has been sensed and absolutely every suggestion will be extremely welcomed.
Thank you!
Since you're asking for any suggestion...
A tip I once read for determining what is creating space in a report: set the background color for the various elements: a different non-white color for each element. Then, hopefully, you can see what is causing the space in the exported document. Also see if different format exports have this problem, or if it's really unique to just Word.
You have a new page after a group or subreport set. Therefore, the rest of the page is whitespace. Check for these and run your report.

How do you make RDLC Fixed position footer

My application is printing checks. In the client's paper stock, the "check" itself is at the bottom 3rd of an 8.5x11in sheet. The details that make up the check are on the top 2/3 of the sheet.
Now if I'm printing multiple checks in one go, I need the check to be essentially the page footer for my .rdlc, but that page footer must start at exactly the same vertical position on every page regardless of how many detail items are on the upper 2/3.
How is this accomplished with RDLC reports? I can easily solve the problem when the check is on the top 2/3 of the page because the table does not affect it's positioning. This one has me stumped.
If it helps, I am on SQL Server 2008.
Figured it out. Basically could use the page footer option (instead of table footer) in RDLC and put ReportItems! formulas in there. That worked fine for what I needed to do.