Download FastReport Studio User manual
Transcript
FastReport Studio – User Manual
131
Event’s script is the following:
C++Script:
void Page1OnManualBuild(TfrxComponent Sender)
TfrxDataSet DataSet;
{
DataSet = MasterData1.DataSet;
DataSet.First;
while (DataSet.Eof != true)
{
Engine.ShowBand(MasterData1);
DataSet.Next;
}
}
Pascal Script:
procedure Page1OnManualBuild(Sender: TfrxComponent);
var
DataSet: TfrxDataSet;
begin
DataSet := MasterData1.DataSet;
DataSet.First;
while not DataSet.Eof do
begin
Engine.ShowBand(MasterData1);
DataSet.Next;
end;
end;
When starting a report, make sure that the result of the script’s work does not
differ from a standard report at all. Refer to the process of getting a link to the Dataset; in
our example we connected a band to the data source, that is why the