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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Pedro_Ziggy
Regular Visitor

[Power BI Report Builder] - How to justify text in text box?

Hello Community,

I have a problem with Report Builder - I cannot justify the text (to the left and right as I would normally do in MS Word).
I know this issue has been mentioned several times, but maybe someone has a simple solution that can be implemented quickly and easily.

In Report Builder (there is no justify icon).

Pedro_Ziggy_0-1719942942242.png

 

There is such an option in MS Word.

Pedro_Ziggy_1-1719943005232.png

Thank you very much in advance for your contribution!

1 ACCEPTED SOLUTION
Pedro_Ziggy
Regular Visitor

H All,

 

I found a solution that works perfectly and consists of 3 steps:
1. Creating references to System.Drawing.dll and System.Windows.Forms.dll.
2. Uploading the custom code to Report Builder (one piece under the other).
3. Calling the function that was loaded in the previous step.

 

Details are available here: SQL Server Reporting Services (SSRS): How to Justify Text (Part 2) (phidiax.com)

 

Final result:

Pedro_Ziggy_0-1720000043792.png

Hint:

Pedro_Ziggy_1-1720000270510.png

View solution in original post

4 REPLIES 4
Pedro_Ziggy
Regular Visitor

H All,

 

I found a solution that works perfectly and consists of 3 steps:
1. Creating references to System.Drawing.dll and System.Windows.Forms.dll.
2. Uploading the custom code to Report Builder (one piece under the other).
3. Calling the function that was loaded in the previous step.

 

Details are available here: SQL Server Reporting Services (SSRS): How to Justify Text (Part 2) (phidiax.com)

 

Final result:

Pedro_Ziggy_0-1720000043792.png

Hint:

Pedro_Ziggy_1-1720000270510.png

Do you know if this can be replicated in Power BI Report Builder?

AmiraBedh
Super User
Super User

Power BI Desktop/Power BI Report Builder do not have justify option currently. if you really want this option, I suggest you create an idea for it in https://ideas.powerbi.com/forums/265200-power-bi-ideas.

If you are willing to use Power BI, here is a workaround (based on this old thread) :

Get more visuals :

AmiraBedh_0-1719946875772.png

Then add the HTML Content visual :

AmiraBedh_1-1719946896650.png

Write out your text in any text editor adding the in-line css `<div style=text-align:justify;line-height:2>` to the outer html tag holding the text e.g. div, span :

AmiraBedh_2-1719946914945.png

Add the text column into the HTML content value shelf

AmiraBedh_3-1719946930043.png

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Hi @AmiraBedh,

Thanks for your contribution on this topic.

My goal is to achieve the justification effect in Report Builder, so your solution is not suitable for my situation.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors