Empty created field

I'm build report dynamically form code.
Memo:= TfrxMemoView.Create(Footer1);     
 Memo.SetBounds(left, 0, 50, Footer1.Height);
 Memo.Frame.Typ := ftLeft + ftRight + ftTop + ftBottom;                                    
 Memo.Halign  := haRight;
 Memo.Valign  := vaCenter;
 Memo.Text :='[SUM(<DS."Saldo_2010/01">,MasterData1,1)]'                                        
 Memo.Font.Name:='Tahoma';           
 Memo.Font.Size:=7;           
 Memo.Font.Style := fsBold;
 Memo.Font.Color := clBlack;                                               
 Memo.DisplayFormat.FormatStr := '%2.2n';  
 Memo.DisplayFormat.Kind := fkNumeric;


Memo is created on Footer band, but its empty.
I have also created the memoes on MasterdataBand, and they had text: = [DS. "Saldo_2010/01"]. And these are working properly.
I think, problem is fieldname ("Saldo_2010/01"), because when fieldname is for example "Saldo" field works correctly !
What can I do with this ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 1:15AM
    instead of calling show report when building from code
    temporarily use a call to design report so you can see what text has been added to the memo.
  • edited 1:15AM
    gordk wrote: »
    instead of calling show report when building from code
    temporarily use a call to design report so you can see what text has been added to the memo.



    After I use a call Design report i see the text has been added : [SUM(<DS."Saldo_2010/01">,MasterData1,1)]
    But, on show memos are empty !

Leave a Comment