Check if a report output is not empty
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com