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

Printing subreport when main report is blank.

edited September 2005 in General
Hello,


I have a report. This report has 5 subreports. How can I show any subreport
when main report is blank.?
I'm using ReportBuilder 7.03.

On the other hand, using ReportBuilder 3.52 it was possible.



Thanks

Comments

  • edited September 2005
    --------------------------------------------------------------------
    Article: Migrating Master/Detail reports from RB 5
    --------------------------------------------------------------------

    Starting with RB 5.5, the data traversal logic and report engine have been
    enhanced to support the new DADE linking features and to improve the ability
    of subreports to handle detail data.

    In the past the subreport did NOT properly honor the detail datapipeline
    SkipWhenNoRecords property. Now that this deficiency has been fixed it is
    causing some confusion.


    To convert old reports that use subreports to print detail data:

    1. Set the detail DataPipeline.SkipWhenNoRecords property to False.

    When SkipWhenNoRecords is False, master records that contain no detail data
    will NOT be skipped and will appear in the report.

    2. Use the default NoDataBehaviors property value of [ndBlankPage].

    When ChildReport.NoDataBehaviors = [ndBlankPage], the subreport will simply
    exit and not print if there is no detail data.

    Note: The NoDataBehaviors property was added in RB 5.52 to provide better
    control over how a report/subreport behaves when there is no data.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2005
    Thanks Nard

    This works well. If the subreport has gone onto a new page of my report due
    to lack of space it means that I can make my graph bigger and move my legend
    box down a bit

    What is the best way to do this?

    Cheers

    Paul

This discussion has been closed.