How to get text output value?

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

How to get text output value?

Post by Jennypi »

Hi,

In a text component I "calculate" a value with multiple conditions:

Code: Select all

{(IIF(Sowing.Ve == 0, "",
	IIF(Sowing.Ve == 5, "Ves",
		IIF(Sowing.Ve == 10, "Ve", ""))).ToString()
+ etc...
}
I would like then to compare the resulting (calculated) value with another one.
What is the property to get this value?
I tried StiText.Text but it's not working.
I can't find something that fits in the documentation.

Thanks!
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

How to get text output value?

Post by Ivan »

Hello,

During report rendering exist two instance of each component (minimum two instance). One instance - component in report template. Second instance - component which created for rendered report. During creation of second instance report engine calculate expressions and write it to second instance. When you write expression like this:

Code: Select all

{Text1.Text}
you call instances from report template which does not contain calculated values from expressions.

You can:
1. Instead of "{Text1.TextValue}" expression use the same expression as in Text1.Text property, or
2. Use variables. In this case you can calculate value in variable, and then use this variable in expressions.

Thank you.
Post Reply