Page 1 of 1
Add additional text to a text component at runtime
Posted: Mon Sep 21, 2015 11:38 am
by vorauler
Hello
I want add additional text to a existent text component at runtime. Something like this
Code: Select all
this.txtPhase1Q1.Text += System.Environment.NewLine + Insurant.Phase1YesNoText1;
If have tried the above and this
Code: Select all
this.txtPhase1Q1.TextValue = this.txtPhase1Q1.Text.Value + System.Environment.NewLine + Insurant.Phase1YesNoText1;
Can give you me a hint, please.
Thank you
Ralf
Re: Add additional text to a text component at runtime
Posted: Mon Sep 21, 2015 1:56 pm
by HighAley
Hello, Ralf.
Could you describe your issue more detailed with samples?
When do you need to change it and on what condition?
Thank you.
Re: Add additional text to a text component at runtime
Posted: Tue Sep 22, 2015 6:22 am
by vorauler
Hello
I have a report with about 35 text components. Each of them has a predefined text, these text will be expanded at runtime with some informations from the database.
I know that I can define a handler for each text component but if it possible I want a shorter way.
Thanks
Ralf
Re: Add additional text to a text component at runtime
Posted: Tue Sep 22, 2015 8:23 am
by HighAley
Hello, Ralf.
You could use any expression in text component. You don't need to use handler. Just write next expression in Text Editor:
Thank you
Re: Add additional text to a text component at runtime
Posted: Tue Sep 22, 2015 9:25 am
by vorauler
Hello
Yes, I know this. But if I could do this by code, I would faster as if I do this with the designer.
Ralf
Re: Add additional text to a text component at runtime
Posted: Tue Sep 22, 2015 1:18 pm
by HighAley
Hello, Ralf.
Could you specify in what event do you want to do this or at what moment?
Could you describe your task more detailed?
Thank you.