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

Check if a report output is not empty

edited August 2017 in General
Hi,

Is there a simple way to decide if a report has content or is
completely empty?
Ideally empty would mean that the report produces no output or a
single empty page.

We are using a "report scheduler" to excecute and export all kinds of
reports to different output devices (including email). It would be
nice if we would know if the output has generated actual data.


regards
Paul Sjoerdsma

Comments

  • edited August 2017
    Hi Paul,

    You can use the OnNoData event of the report to determine if the report
    will receive no data.

    Likewise, if there is no data received, the NoDataBehaviors property
    will come into effect. Setting this to ndBlankPage will give you a
    single blank page in the preview and no pages are printed/exported when
    no data is received as you described. This is the default setting.

    See the help topics for the OnNoData event and NoDataBehaviors property
    for more information.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.