How can I reduce column spacing on a multi-column report in SSRS?

caesar 0 Reputation points
2023-02-15T15:54:07.11+00:00

Hi,

I have built a multicolumn report with SSRS Report Builder. I need to narrow the column spacing down to 2mm aprox but if I set "Column spacing" to even 0 mm, I get 4,5 mm.

Is there any way to further reduce it?

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2023-02-15T16:21:04.7133333+00:00

    That's pretty small. I'd argue that if you're worried about 2mm then maybe you are bored :} But let's try to solve the problem.

    Column spacing is only part of the layout. That would determine the spacing between columns (but I don't know that an SSRS report has a column spacing property so I'm curious what you're setting). You also have to take into account the padding and border styling. The padding is the space between the contents and the cell boundary. This is so that the column content doesn't start exactly on the edge of the column (nor end on it).

    The border is inserted between each column so that adds space as well. If you're getting 4-5mm spacing between columns then I'm going to guess that your padding is 2mm and your border is 1mm. That would be 2 + 2 + 1 = 5. But by default things sizes are measured in points, not mm. A point is 1/72 inch so you can do the math as to what that would be in mm.

    If you can provide a repro RDL then maybe we can identify where the spacing is coming from. Note that ultimately the renderer will determine the actual spacing so you might see some differences between, say, the HTML version and the PDF version of your report.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.