Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
nli00
New Member

The LineHeight property in Report Builder does not take effect.

In Report Builder, when using a text box with static text content, if the content exceeds the maximum length of the text box, it will automatically wrap. After wrapping, you want to set the line height, but the LineHeight property has no effect when set

 

nli00_0-1739001257646.png

 

1 ACCEPTED SOLUTION
v-linhuizh-msft
Community Support
Community Support

Hi @nli00 ,

 

By default text boxes in the row are set to grow vertically to accommodate their data at run-time. This setting can cause a row to expand beyond the height that you specify. To set a fixed row height, you must change the text box properties so they don't automatically expand.

 

In the Properties pane under General, set CanGrow to False. The lineheight value must be between '1pt' and '1000pt'.

vlinhuizhmsft_2-1739157833439.png

 

The LineHeight property setting only has an effect in HTML rendering. Therefore, the report view will not show the effect of the lineheight you set. You can try to publish it to Power BI Report Server, or Power BI Service.

vlinhuizhmsft_1-1739157804817.png

vlinhuizhmsft_3-1739157858459.png

 

Related links:

sql-docs/docs/reporting-services/report-design/change-row-height-or-column-width-report-builder-and-...

Line height or line spacing in SQL Reporting Services 2008 R2 when using SQL Server Business Intelli...

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-linhuizh-msft
Community Support
Community Support

Hi @nli00 ,

 

By default text boxes in the row are set to grow vertically to accommodate their data at run-time. This setting can cause a row to expand beyond the height that you specify. To set a fixed row height, you must change the text box properties so they don't automatically expand.

 

In the Properties pane under General, set CanGrow to False. The lineheight value must be between '1pt' and '1000pt'.

vlinhuizhmsft_2-1739157833439.png

 

The LineHeight property setting only has an effect in HTML rendering. Therefore, the report view will not show the effect of the lineheight you set. You can try to publish it to Power BI Report Server, or Power BI Service.

vlinhuizhmsft_1-1739157804817.png

vlinhuizhmsft_3-1739157858459.png

 

Related links:

sql-docs/docs/reporting-services/report-design/change-row-height-or-column-width-report-builder-and-...

Line height or line spacing in SQL Reporting Services 2008 R2 when using SQL Server Business Intelli...

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.