How to set a page visible false?
Hi,
I have a report which needs all data from a dataset because of the
calculations. The user can select some options before the report is printed.
One of these options is to show only the records with values bigger as 0. So
I set some groupfooters and headers to visible false when tthe user selects
this option.
So what happens is that I get pages with title and footer captions and not
visible data. How can I set this page to visible false or else delete this
page?
Thanks in advance.
Paul
I have a report which needs all data from a dataset because of the
calculations. The user can select some options before the report is printed.
One of these options is to show only the records with values bigger as 0. So
I set some groupfooters and headers to visible false when tthe user selects
this option.
So what happens is that I get pages with title and footer captions and not
visible data. How can I set this page to visible false or else delete this
page?
Thanks in advance.
Paul
This discussion has been closed.
Comments
- you can use the detail band BeforePrint event to conditionally print
values greater than 0
example:
if myDataPipeline['Amount'] > 0 then
myReport.Detail.Visible := True
else
myReport.Detail.Visible := False;
- in general the report is going to traverse your datapipeline, try to
generate a detail band for each record, so by suppressing the detailbands
you will automatically get less generated pages for the report. If you have
no values greater than zero, then you are going to get an empty report such
as you describe
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com