Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Blank reports where dataset is empty

edited March 2006 in General
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

Comments

  • edited March 2006
    Hi Eneko,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Oh man! I love when thinks are so simple to fix!

    Thanks a lot. This was a very important issue... Thanks again. :)



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.