Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS how to decrease space between textboxes

I have two text boxes and I want their values to be one on top of the other. With almoste no spacing. I tried to remove padding but this didn't influence much.

enter image description here How it's displayed

enter image description here How I want it to be displayed

Maybe the problem is that the Can grow property is turned on?

like image 581
ProgBlogger Avatar asked May 18 '26 20:05

ProgBlogger


1 Answers

The line space property of text-box in Reporting Services is called LineHeight.

Unfortunately what you want to achieve is not possible in SSRS. The LineHeight property has an effect only in HTML rendering. It is ignored for other rendering formats.

These are the options so far that I tried to set the textboxes as closely as possible.

  1. 'Allow height to decrease' - To allow the text box to shrink based on its contents.

    TextBox Properties -> General -> Sizing Options -> check 'Allow height to decrease'

  2. Set 'Padding Top = 0' and 'Bottom = 0'

    TextBox Properties -> Alignment -> Padding Options -> Change Top = 0 and Bottom = 0

  3. Move the textboxes as closely as possible. Margin of one textbox to another is 0

  4. Change your Font style and minimize your Font size (the result is more noticeable using a single textbox using break for the next line. Not very much advisable but its an option)

  5. Use multiple table headers as textbox and play around with paddings. (optional)

    • Textbox on top -> Set the padding bottom = 0 and increase the padding top to push the text at the bottom.

    • Textbox below -> Set padding top = 0 and increase the padding bottom to push the text above.


There is another option but I haven't tried yet and don't know if possible.

  • Convert the textbox value to placeholder text and set it to interpret HTML.
like image 67
bot Avatar answered May 20 '26 08:05

bot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!