Home Subreports
New Blog Posts: Merging Reports - Part 1 and Part 2

Subreports with no data

edited January 2003 in Subreports
Hello there,

I have a number of subreports in a fairly simple report.

If a subreport returns no records, ReportBuilder does not display that
subreport at all.
I would actually like the empty subreport to be displayed so that the users
can see that no records have been attached.
Is there any way of stopping Report Builder from hiding the empty subreport?

Thanks,

Nick

Comments

  • edited January 2003
    The NoDataBehaviors should apply to the subreport. See the embedded Report
    object int he subreport. This is the Subreport.Report property. From teh
    designer, go into the subreport workspace. Then click on the greyed out
    report icon in the upper left corner of the workspace. This is between the
    top and left rulers. Then in the object inspector, the class of the object
    selected should be TppChildReport. The NoDataBehaviors should be accessible
    from the OI now.

    Be sure to set the detail datapipeline's SkipWhenNoRecords property to False
    so that the master record prints even when no detail data exists.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.