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

Subreport blank page when no data

edited December 2005 in Subreports
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

Comments

  • edited December 2005
    Hi Chris,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2005
    Muchos gracias! I performed the data check and visibility toggle in the
    TppReport.BeforePrint, and it worked.

    Thanks again,

    Chris


This discussion has been closed.