[Lazarus] Lazreport: how to print something when there are no records?

Luca Olivetti luca at wetron.es
Wed Dec 14 17:11:58 CET 2022


El 13/12/22 a les 12:53, Luca Olivetti via lazarus ha escrit:
> As per the subject, I'd like LazReport to print "No records to print" 
> (or whatever else I want to print) when there are no records in the 
> dataset.
> How do I do that?

I found a way: add a record summary band with my text and in the 
OnBeginBand event I set its visible property to false if there are 
records in the dataset.

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007



More information about the lazarus mailing list