Jumping from one DB row to another using Fast Reports
I am working with Delphi 16 and Fast Reports 4.1. Embarcadero Edidion.
Roughly, my question is : Is there a way to force frxReport (connected to a Data Base) to skip some of the table entries during report generation?
What I mean can be illustrated as follows:
Assume that we have a large table from the database, one with 1000 entries, and assume that we want to generate a report filled with data from this table, with one page per entry. Naturally, 1000 pages report will be a bit too much to handle, so we need a way to tell Fast Report which entries of the table to use while preparing the report.
To select only a subset of all entries of the table, I use DBGrid where I set the
This seems to be ok, but in the context of the application I am programming, is unacceptable. So going back to the original question: Is there a way to control which entries in 'frxDBDataset1.DataSet' must be visited when '
Thank you
Roughly, my question is : Is there a way to force frxReport (connected to a Data Base) to skip some of the table entries during report generation?
What I mean can be illustrated as follows:
Assume that we have a large table from the database, one with 1000 entries, and assume that we want to generate a report filled with data from this table, with one page per entry. Naturally, 1000 pages report will be a bit too much to handle, so we need a way to tell Fast Report which entries of the table to use while preparing the report.
To select only a subset of all entries of the table, I use DBGrid where I set the
DBGrid1.Options.dgMultiSelect:= True
and select the desired rows with mouse clicks. Then I copy the selected rows into a seperate TClientDataSet(named TempDataSet) component, after which I set the current report's data set to the newly created TempDataSet '
frxDataSet1.DataSet := TempDataSet
' and launch prepare report.This seems to be ok, but in the context of the application I am programming, is unacceptable. So going back to the original question: Is there a way to control which entries in 'frxDBDataset1.DataSet' must be visited when '
frxReport1.PrepareReport();
' is called ?Thank you
Comments