GetValue is not fired

Stimulsoft Reports.NET discussion
Post Reply
Xavier Rubio
Posts: 3
Joined: Thu Sep 27, 2007 9:08 am
Location: Spain

GetValue is not fired

Post by Xavier Rubio »

Hey guys, only a question:
Isn't GetValue event fired when Text property is fixed text?
For example: I have a Text label with fixed text "Total Tax" and in the GetValue event I have this code:

Code: Select all

if(!Customer.ApplyTax) {e.Value = "No Tax"}
But de label always show "Total Tax", because the GetValue event is not fired. Is this correct?

Thanks.

(I'm using 2006.4 version of Stimulsoft)
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

GetValue is not fired

Post by Edward »

Yes, it is a correct behavior.

If GetValueEvent is defined, then it is always fired. But the default value of the e.Value in this event is the text or result of expression which is defined in the "template" text component.

So if you want to change the default value, please modify your code:

Code: Select all

if(!Customer.ApplyTax) {e.Value = "No Tax";}else {e.Value = "";}
When event is fired e.Value has "Total Tax" value already assigned.

Thank you.
Post Reply