Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are the row heights in an SSRS tablix calculated?

I am wondering how the row heights in an SSRS tablix are calculated.

For instance, I have data for which the displayed and grouped by columns are close enough to be identical. However, some rows will for some unknown reason have a massive height with a lot of blank space. If you inspect the HTML output you can see that these rows have a rowspan and height applied to them.

This is not a wrapping issue as I can do an IIf on that row's item id and simply display "a" instead of the actual values and still get abnormal height. I have also disabled CanGrow on all textboxes/rows etc. and have set manual heights yet the issue persists.

What causes this behaviour and how are the row heights usually calculated?

like image 302
Matt Mitchell Avatar asked Jul 30 '10 00:07

Matt Mitchell


People also ask

How to set row height in ssrs report?

To change row height by setting cell propertiesIn Design view, click a cell in the table row. In the Properties pane that displays, modify the Height property, and then click anywhere outside the Properties pane.

What is a tablix in SSRS?

In Report Builder, the tablix data region is a generalized layout report item that displays paginated report data in cells that are organized into rows and columns. Report data can be detail data as it is retrieved from the data source, or aggregated detail data organized into groups that you specify.

How do I change page size in SSRS report?

Right-click outside of the report body and click Report Properties. In Page Setup, select a value from the Paper Size list. Each option populates the Width and Height properties.


2 Answers

There are a couple of possibilities as to what is going on:

  1. SQL Server 2008 (fully patched) has a bug in that padding can sometimes be added for certain datatypes. Take a look at this page for more details. The link isn't covering exactly your issue but a support person from Microsoft does claim it to be a bug and very likely extends to your issue, as well. Supposedly, upgrading to SQL Server 2008 R2 resolves the issue.
  2. Assuming that you aren't going to upgrade SQL Server, there are a couple of things for you to check:
    • Make sure that the row height is not set to a height smaller than the default. keep the height at least as large as the default.
    • Adjusting the padding settings so that the top and bottom padding is set to zero (as others have mentioned) to Padding: 2,2, 0, 0
    • Take a look at this page for a more in-depth description. The article is a few years old but the information likely still applies.
like image 113
NakedBrunch Avatar answered Nov 06 '22 17:11

NakedBrunch


Try setting the following properties for your rows and see if it helps.

  • Padding: 2pt, 2pt, 0pt, 0pt
  • VerticalAlign: Middle
  • CanGrow: False
  • CanShrink: False
like image 21
Joe Stefanelli Avatar answered Nov 06 '22 19:11

Joe Stefanelli