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 7:16PM
    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 7:16PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.