Line Height in SSRS

谁都会走 提交于 2019-12-11 09:44:51

问题


Is there a way to adjust the line height in SSRS? I have a requirement on a legal document to have a bigger line height.

From what I have read, the Textbox.LineHeight property only affects html. I have converted the text inside the textbox to html, set the LineHeight property, but nothing changed.

I also tried adding custom CSS to the report (using old school line-height: {x} pt; inside a style tag), but to no avail - that isn't supported in the SSRS environment.

Here is an example what I need - How can I achieve this?

Before:

After

Does SSRS even support this?

Edit

Converting the text to an expression and adding a double VbCrLf will not be feasible as I need to only add a partial line height


回答1:


You could add an expression on the Padding.Bottom property.

=IIF(IncreaseHeight, "20pt", "2pt")




回答2:


If the text is already multiple lines, format the textbox to accept HTML. Replace the line breaks with a white character in a larger font followed by a <br/> tag.

<span style=""font-size=12pt; color:white;"">|</span><br/>

If your text is all on the same line, do the above for each space in your text. Using a bar "|" should be enough to represent the space between words. If not, use a thicker character.



来源:https://stackoverflow.com/questions/29747511/line-height-in-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!