No Print empty subreport (section)
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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