Empty preview - If empty SubReport in detail band
Hi All!
I have report with next structure:
Master-detail queries and
main report with simple detail DBLabels and subreport on detail band
with some details (Fixed size) of record.
I have next problem: if subreport has no record I get empty page
on Preview
How to show the report even though subreports has no records?
Regards,
Nikolai Bochkarev
I have report with next structure:
Master-detail queries and
main report with simple detail DBLabels and subreport on detail band
with some details (Fixed size) of record.
I have next problem: if subreport has no record I get empty page
on Preview
How to show the report even though subreports has no records?
Regards,
Nikolai Bochkarev
This discussion has been closed.
Comments
You need to change the Report.NoDataBehaviors property to ndBlankReport for
your subreport. This should allow other objects to appear even if there is
no data retrieved.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
for
is
SubReport1.NoDataBehaviors = ndBlankReport ?
In this case I see on Preview Header, Title, Detail with lines
but don't see on Detail band DBTexts with data of Main Datapipeline.
I'm solve this task another way:
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,
Nikolai Bochkarev