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

No Print empty subreport (section)

edited December 2005 in General
Hi,

i've a main report with only DeatailBand, and in it i've two subreport
(section)

MainReport
{detailBand}
SubReport1 (section)
SubReport2 (section)

sometimes Subreport2 is a blank page. I don't want to print this empty
page.

how can i do this?

tks



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited December 2005
    Hi Ennio,

    Try toggling the visibility of the subreport based on whether data will be
    shown or not. For instance, you could check the dataset the second
    subreport is connected to and if it doesn't return any values set
    ppSubreport2.Visible := False. Don't forget to set it back to True if there
    is data however.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2005
    Hi Nico,

    on event MyQueryAfterOpen i've set:

    ppSubreport2.Visible := not MYquery.isempty;

    it's ok!

    tks a lot!

    be
    there



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