the [Line] variable system !

edited May 2012 in FastReport 4.0
the FastReport variable system [Line] don't work perfectly !

i need to assign columns headers and dataset fields on runtime like this;

=== ColumnHeaderBand ===========================
Memo1 Memo2 Memo3 // --> Titles of columns
=== DetailBand =================================
Memo4 Memo5 Memo6 // --> Data of a row


with this source;
procedure frxReport1.BeforePrint
// Columns headers...
(frxReport1.FindObject('Memo1') As TfrxMemoView).Text := '#';
(frxReport1.FindObject('Memo2') As TfrxMemoView).Text := 'Name';
(frxReport1.FindObject('Memo3') As TfrxMemoView).Text := 'Date of Birth';
// Row data...
(frxReport1.FindObject('Memo4') As TfrxMemoView).Text := '[Line]';
(frxReport1.FindObject('Memo5') As TfrxMemoView).DataSetName := 'frDBDS_EmployesDataset1';
(frxReport1.FindObject('Memo5') As TfrxMemoView).DataField := 'Name';
(frxReport1.FindObject('Memo6') As TfrxMemoView).DataSetName := 'frDBDS_EmployesDataset1';
(frxReport1.FindObject('Memo6') As TfrxMemoView).DataField := 'BirthDate';

The result
The headlines (Memo1, Memo2 and Memo3) works perfectly;
The data rows (Memo5 and Memo6) also works perfectly,
but the Memo4 shows only this [Line], with "Allow Expressions" checked
so i need its value 1, 2, 3...etc and not [Line], [Line], [Line]...etc


Can anyone help me plz ?

Comments

  • gpigpi
    edited 3:27PM
    Attach small demo project here

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.