the [Line] variable system !
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 ?
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