Subreport blank page when no data
When there is no data in the pipeline, the subreport prints a blank page.
NoDataBehavior is set to ndBlankPage. Is there some way I can kick out of
the subreport on before print or OnNoData event?
Thanks,
Chris
NoDataBehavior is set to ndBlankPage. Is there some way I can kick out of
the subreport on before print or OnNoData event?
Thanks,
Chris
This discussion has been closed.
Comments
Unfortunately the OnNoData fires too late to change the visibility of that
subreport. You will probably need to use the Band.BeforePrint event of the
main report to check the connected dataset for no data, and toggle the
visibility accordingly from there.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
TppReport.BeforePrint, and it worked.
Thanks again,
Chris