Blank reports where dataset is empty
Hello,
We are usign Delphi 2005 with Report Builder 9.01, but the same was
happening with previous versions, both Delphi and RB.
The problem is whenever a report dataset is empty (returns no records),
the report blanks out. I mean, all ppLabels are blank also (no text at
all). We have some headers, versions, time and date labels, column titles,
etc, but nothings shows up.
I have figured out problem disappears returning only one record with all
fields set to null. But of course to do this is more complex than it looks
talking about SQL sintax on a query.
Anyone else have or had the same problem? Any clue of how to solve this?
Thanks in advanced.
--- posted by geoForum on http://delphi.newswhat.com
We are usign Delphi 2005 with Report Builder 9.01, but the same was
happening with previous versions, both Delphi and RB.
The problem is whenever a report dataset is empty (returns no records),
the report blanks out. I mean, all ppLabels are blank also (no text at
all). We have some headers, versions, time and date labels, column titles,
etc, but nothings shows up.
I have figured out problem disappears returning only one record with all
fields set to null. But of course to do this is more complex than it looks
talking about SQL sintax on a query.
Anyone else have or had the same problem? Any clue of how to solve this?
Thanks in advanced.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
You need to set the Report.NoDataBehaviors property to ndBlankReport :=
True. This will show all static components even if there is no data
present. This property is a published property so it is available from the
Delphi object inspector.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks a lot. This was a very important issue... Thanks again.
--- posted by geoForum on http://delphi.newswhat.com