Printing sub reports when no data for main report
Hi,
RB 10.08, D2007.
I have a report which contains 2 sub reports. Is it possible, via RAP or
otherwise in the end user designer, to force the sub reports to print even
when there is no data for the main report?
I'm passing the autosearch values from the main report to the two sub
reports and so they are not really dependant on the main report having
data - they just happen to be gathering some associated data for the same
date ranges.
Can anyone help please?
Regards, Paul.
RB 10.08, D2007.
I have a report which contains 2 sub reports. Is it possible, via RAP or
otherwise in the end user designer, to force the sub reports to print even
when there is no data for the main report?
I'm passing the autosearch values from the main report to the two sub
reports and so they are not really dependant on the main report having
data - they just happen to be gathering some associated data for the same
date ranges.
Can anyone help please?
Regards, Paul.
This discussion has been closed.
Comments
Yes, you need to make sure the SkipWhenNoRecords property is set to False
for the detail pipeline of your report. This option can also be set by
double clicking on the link between two dataviews in DADE.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
link between dataviews.
Regards, Paul.
In this case, you need to set the NoDataBehaviors property of the
subreport/report to ndBlankReport. This can be done in the designer using
the object inspector so there is no need to use RAP.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Unfortunately since RAP does not support sets, you will either need to set
the NoDataBehaviors in Delphi code or from the designer. Otherwise you
would need to add some custom RTTI to the TppCustomReport class to allow you
to update the NoDataBehaviors set from RAP.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com