Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2022-12

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

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luca Olivetti

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

Reply by email

Luca Olivetti
to Luca Olivetti

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

Reply by email