Remove excess space from the first page of a SQL Server Reporting Services report

I am using SQL Server Reporting Services 2008 (although this seems to be a problem for me in 2005 as well). I have a report that has one page for each customer (i.e. on the customerId page). The weird thing I see is that the first report (i.e. the first page of the report) has a little extra space at the top than the other pages. In general, this happens when you have a title for the report and swap (so the first page has a title, but every subsequent page does not). The report I'm dealing with doesn't have that name, but it still has extra extra space.

I am wondering how I can avoid the extra space on this first page of the report. How do I make each page of the report identical?

I don't have a header or footer applied to the report.

+1


source to share


3 answers


There are several different reasons for the extra space at the top of the HTML page rendering in any version of Reporting Services. There are several tricks to get around this depending on the cause of the problem:

  • Move the title from the title to the body of the report. If the title is a label, it doesn't always help.

  • If you are using a table, add a separate row to the table header. This works really well, especially when rendered in Excel. However, not all reporting requirements may support this as a solution.

  • In SSRS 2000/2005, if you are using a container such as a rectangle or a group, then the chances that you have a spacing problem increase. If you can move the title out of the container, it can help reduce the likelihood of a problem. I haven't tried using Tablix grouping items in SSRS 2008, so I can't tell if this will work in SSRS 2008.

  • If you keep header and footer objects, even if you don't add labels to regions, it can lead to extra space on the first page.



It's hard to give you better advice without reproducing your exact problem. If you would like to temporarily post the code for a sample RDL file, I can try to reproduce the issue in SSRS 2008 on my machine and see if I can provide you with a customized solution to your problem.

+1


source


I just found an issue where I had extra space on the first page.

In my case, the report has a title (with a text box inside) and a table in the body. The problem was that the first page (printed from the app) had a small space between the header and the table on the body. Well, besides, the result was perfect. But when exporting to Excel, the first page only showed the title, the rest of the pages looked perfect.



Solution: when you add a table (at least in the body), this table has a header and footer automatically. I didn't use header or footer, so I deleted them (first file and last table file) and voilá = -D

what all.

+2


source


I am using Reporting Services / SSRS 2008. I have a table (tablix) with column headings and a subheading on the last row. How to get rid of extra space on the first page? It looks ugly when exported to Excel. I tried to move the table just below the report title and it doesn't work. It seems to provide a tiny space in between.

+1


source







All Articles