TextBox with formula: don't want to repeat formula in other TextBox

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

TextBox with formula: don't want to repeat formula in other TextBox

Post by Fabio Pagano »

I have a textbox with a formula in it. Another textbox value is calculated with the same formula of the first textbox plus some other values. In this second textbox i didn't want to repeat the first textbox formula, and i wanted to use the first textbox calculated value instead.

Eg.

TextBox1.Text= "A + B"

TextBox2.Text="A + B + C"

Instead i wanted something like:

TextBox2.Text="TextBox1.Text + C"

Is this possible?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

TextBox with formula: don't want to repeat formula in other TextBox

Post by Edward »

Hello, Fabio.

I would use variables or BeforePrintEvent of the Page or band on which these components are situated.

Code: Select all

Text1.TextValue = "5"
Thank you.
Post Reply