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

SubReport - Need to print title and summary - even when no records

edited January 2003 in Subreports
Hi,

I can't seem to get a subreport to print when there are no records ... not
surprising I guess ! ... I've tried setting the DBPipeline SkipWhenNoRecords
to false but to no avail ... how do I do this ?

Andrew

Comments

  • edited January 2003
    The subreport is not going to print if there are no detail records, by
    default. However, this is controllable with the
    Subreport.Report.NoDataBehaviors proeprty. Go into the subreport workspace
    in the designer and select the greyed out report icon in the upper left
    corner of the workspace, between the rulers. This selects the child report
    object. Then go to the object inspector and you should see the
    NoDataBehaviors for this child report. Set it to ndBlankReport.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited January 2003
    How do my users who only have the report designer set this property?

    TIA,

    Paul

  • edited January 2003
    You'll have to add a menu item to the designer's menu. Then surface this
    property in a custom dialog you'll create which is launched from the menu
    item click. See the MergeMenu property of the designer in the RBuilder help
    for more information on adding a menu item


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.