Empty created field
I'm build report dynamically form code.
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 ?
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
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 !