SSRS Report textbox text-align:Justify

Thiru S 21 Reputation points


I have built out the SSRS Report and in that I have a textbox and I'm showing text summary with 10 lines. I was trying to find a text align to be "Justify", but i cannot find.

I tried googling, to figure out a solution for text-align: justify;

I tried by placing a textbox and to render a HTML text , it does not work the text gets left aligned.
(Note: placeholder with text-align:left is working expected, but text-align:justify only not working)

How can we implement any ideas ?
Please help on this,

Not working : ="<p style=""text-align:justify"">"+Fields!PortfolioUpdate.Value+"</p>"
Working : ="<p style=""text-align:left"">"+Fields!PortfolioUpdate.Value+"</p>"



SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,607 questions
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.
2,787 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,561 Reputation points

    Hi @Thiru S ,
    In SSRS justify is normaly not supported. You could try using custom code: SQL Server Reporting Services (SSRS): How to Justify Text (Part 2).
    Best Regards,

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Ronen Ariely 15,096 Reputation points

    I did not try it but check the solution in this thread:

    0 comments No comments

  2. Thiru S 21 Reputation points

    Thank you @Ronen Ariely ,

    I tried with that link(Image 1), I am able to get the justify text, but after downloading pdf from server and open in local PC, i could see only Junk characters(see Image 2), not displaying exact font(Verlag Book font),

    I used below C# code to convert the text into as Justified with <div> Tags and using Placeholder html transformation



  3. Thiru S 21 Reputation points

    Thank you @Joyzhao-MSFT & @Ronen Ariely
    I tried your both solutions, it is working fine 90%,
    After applying above logic, yesterday, what was facing font issue in local PC after PDF download, that issue also fixed,
    It is a mistake i used OTF font, finally i used TTF, issue fixed,
    Once again thanks for you both.

    0 comments No comments

  4. Sripriya Kunaratnam 0 Reputation points

    can you give a solution for justify alignment in SSRS?

    0 comments No comments