Question
“How do I check if there is data to be retrieved before printing my report?”
Solution
Check the TppDataPipeline.EOF and TppDataPipeline.BOF properties. If both of these properties are True, the dataset contains no data. Note that the datapipeline will need to be opened to successfully access these properties.
Download: CheckForDataBeforePrinting.zip
Sample Delphi code: