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
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

  • edited 8:18AM
    Is this an ad-hoc selection or is it known what records need to be printed before starting the reporting process?

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.