Reputation: 3299
I have a function I wrote on stimulsoft report code :
public static ChangeTextBoxValue(string s)
{
return s + " S.T ";
}
And in a textbox in designer I wrote an expression :
{ChangeTextBoxValue(Text1.Text)}
But at preview it return only " S.T "
.
I try this too, But it didn't work too:
public static ChangeTextBoxValue()
{
return Text1.Text + " S.T ";
}
By this expression on textbox:
{ChangeTextBoxValue()}
Upvotes: 0
Views: 2062
Reputation: 1329
It's impossible to use Text1.Text expression in other component. Because after rendering there are many Text1 componnents on report pages and usually they have different values. Which one should be used?
You should use the same expression as you use in Text1 component. This expression will be calculated for this component.
Upvotes: 1