Click here to Skip to main content
15,795,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

How to align text box to align right with if condition in rdlc report

i have a parameter value in report named is_arabic its is true then the text should be right aligned please help me

regards Mehaboob

1 solution

This can easily be done with the GUI. Selecting the textbox properties, then selecting the Alignment option, beneath Horizontal and vertical alignments, select the fx button(gives it its option based on an expresion) your expresion could look something like this:
=iif(Parameters!is_arabic.Value = true,"Right","Left")

Hope this helps.
Share this answer
itsmehaboob 13-Jan-15 0:55am    
Tank you for your replay but this is not working :(
BulletVictim 13-Jan-15 1:29am    
Try it like this maybe. =iif(Parameters!is_arabic.Value = "true","Right","Left").
I have Tested it with one of my reports as follows : =iif(Parameters!CASENO.Value = "MRI-000000479","Right","Left") This does work on my report.
Document Here:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900