Page 1 of 1

how change the text HorizontalAlignment property run time

Posted: Wed Feb 06, 2013 6:32 am
by fjaweihyafie
I had a columen contains value (string or number),eg:

Type Key Detail
Error Line 2:.. Error Description
Falut content ....
STATUS Added 55
STATUS Updated 10


I want to control the Details Value Text's HorizontalAlignment property depend on the Type value,such as when Type value is not STATUS Details Text HorizontalAlignment is set to "Left" ,when Type value is "STATUS" ,I need to set the Detail Text HorizontalAlignment property to "Right" ,just satisfy the rule "Number -- Right aligned".
I try to uses

Code: Select all

Text25.HorizontalAlignment = IIF(AuditEventDetails.Type == "STATUS","Right","Left")
at the Detail event " Before Print " in mrt file (the column of Details value is in Text25),but I got errors ,Can anyone help me ,thanks.

Re: how change the text HorizontalAlignment property run ti

Posted: Wed Feb 06, 2013 11:01 am
by Alex K.
Hello,

Please try to use the Style in Conditions for this task.

Thank you.

Re: how change the text HorizontalAlignment property run ti

Posted: Fri Feb 08, 2013 1:02 pm
by fjaweihyafie
I doubt about how to user the Style in Conditions , I 'm a beginner ,Thanks a lot

Re: how change the text HorizontalAlignment property run ti

Posted: Fri Feb 08, 2013 1:20 pm
by HighAley
Hello.

Here is a demo videos how to use Conditions http://www.stimulsoft.com/en/videos?tags=conditions,net

Thank you.

Re: how change the text HorizontalAlignment property run ti

Posted: Sat Feb 09, 2013 7:07 am
by fjaweihyafie
Get it ,Thanks ;-)

Re: how change the text HorizontalAlignment property run ti

Posted: Sun Feb 10, 2013 5:42 am
by Andrew
Hello,

Great! Have a nice weekend!

Re: how change the text HorizontalAlignment property run ti

Posted: Sun Feb 10, 2013 12:23 pm
by fjaweihyafie
The same to you .I'm enjoying the Sprint Festival(The New Year of China) :-)

Re: how change the text HorizontalAlignment property run ti

Posted: Mon Feb 11, 2013 9:43 am
by HighAley
Hello.

We are happy for you.
Let us know if you will have any additional questions about our product.

Thank you.