Problem about SubReport
Hi,
I use RBuilder 7.0. and use subreport for detail data print. My question
is that Sometimes master data has blank detail records. When detail is blank
in subreport, the master data cannot print out too.(means Only shown detail
not blank). I try to do as the folloing steps, but can't improve. Hope
someone can help. Thank you very much.
On main report RAP code
DetailBeforeGenerate:
if Query2DataPipeLine.BOF and Query2DataPipeLine.EOF then
SubReport1.Datapipeline := nil else
SubReport1.Datapipeline := Query2DataPipeLine;
And in Repoprt Designer set Datapipeline of SubReport1 on Empty (<- without
this does not work!)
Regards,
abcat66
I use RBuilder 7.0. and use subreport for detail data print. My question
is that Sometimes master data has blank detail records. When detail is blank
in subreport, the master data cannot print out too.(means Only shown detail
not blank). I try to do as the folloing steps, but can't improve. Hope
someone can help. Thank you very much.
On main report RAP code
DetailBeforeGenerate:
if Query2DataPipeLine.BOF and Query2DataPipeLine.EOF then
SubReport1.Datapipeline := nil else
SubReport1.Datapipeline := Query2DataPipeLine;
And in Repoprt Designer set Datapipeline of SubReport1 on Empty (<- without
this does not work!)
Regards,
abcat66
This discussion has been closed.
Comments
Try setting the SkipWhenNoRecords property of the detailpipeline to False.
This should allow the master to print even if there is no detail data
available.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com