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

2022-12-14 Thread Luca Olivetti via lazarus

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

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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

2022-12-13 Thread Luca Olivetti via lazarus
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?

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus