GetValue/Property PageFooterBand

Stimulsoft Reports.NET discussion
Post Reply
Coyote
Posts: 4
Joined: Fri Apr 09, 2010 6:41 am
Location: Germany

GetValue/Property PageFooterBand

Post by Coyote »

Hello,

i use the following code in the GetValue property of a description field. The description field is a member of a PageFooterBand.

Code: Select all

string WeitereLagerorte = "";
string AKL = AUFTRAGSKOPF.PICKS_AKL.ToString();
      if (AKL != "0") {
        WeitereLagerorte = "AKL, ";
      }
string ML0 = AUFTRAGSKOPF.PICKS_ML0.ToString();
      if (ML0 != "0") {
        WeitereLagerorte += "ML0, ";
      }
string ML1 = AUFTRAGSKOPF.PICKS_ML1.ToString();
      if (ML1 != "0") {
        WeitereLagerorte += "ML1, ";
      }
Text19.TextValue = WeitereLagerorte;
The report consists two pages.

On the second page the result was e.g. AKL, ML1,
The field in the PageFooterBand on the first page is empty.

I think, during generating the first page of the report the result of the description field (Text19) is not calculated.

How can I solve the problem?

Thanks Coyote
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

GetValue/Property PageFooterBand

Post by Andrew »

Hello,

In common case in the GetValue event instead of the

Text19.TextValue = WeitereLagerorte;

expression, please use the following one

(e.Sender as StiText).TextValue = WeitereLagerorte;

Also, if textbox is placed on PageHeader / PageFooter, there can be some nuances with rendering.
If you have some problems, please send to support@stimulsoft.com a report with data for analysis.

Thank you.
Post Reply