No Data Indicator for reports
I have my reports set to create a blank report and put a message on the
report when no data is available.? This works some times but other times I
just get a blank report. Any idea why this might be happening? It does not
seem to be report dependent but perhaps data dependent. If there a way to
check a report to see if it is going to be blank or not? That way we could
put in our own code to handle blank reports.
We are using the latest version of the RB.
Thanks
Shawn Pletch
--- posted by geoForum on http://www.newswhat.com
report when no data is available.? This works some times but other times I
just get a blank report. Any idea why this might be happening? It does not
seem to be report dependent but perhaps data dependent. If there a way to
check a report to see if it is going to be blank or not? That way we could
put in our own code to handle blank reports.
We are using the latest version of the RB.
Thanks
Shawn Pletch
--- posted by geoForum on http://www.newswhat.com
This discussion has been closed.
Comments
Check your Report.NoDataBehaviors property. If this is set to
ndBlankPage, the report will be empty if there is no data present.
ndBlankReport will still display all static objects.
For your case, you can use the ndMessageOnPage in conjunction with
ndBlankReport to place a text message on the page informing the user
that there is no data. Use the OnNoData event to alter this message.
See the NoDataBehaviors property in the RBuilder help for more information.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
hard coded right now to force all reports to this. Any ideas why it would
work sometime and not others?
Thanks
Shawn
--- posted by geoForum on http://www.newswhat.com
Are you by chance loading templates? Note that once you load a
template, any properties previously set in the report will be
overwritten by the saved template properties. You can re-assign these
properties after the template has loaded.
http://www.digital-metaphors.com/rbWiki/Design/Templates/Using_Template_Events
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
data itself and just prior to doing a print (after template is loaded). I
think that the reports that have the problem may have sub datapipes. Could
this be the issue? If there is data available but not enough to actually
create the report, do these get triggered?
Thanks
Shawn
--- posted by geoForum on http://www.newswhat.com
Please create a simple example I can run on my machine and send it to
support@digital-metaphors.com in .zip format and I'll take a look at it
for you.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com