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

No data found for this report

edited June 2007 in Subreports
Hello

I have a master detail report containing two subreports.
a) The main report contains only a detail band
b) the detail band contains only the subreport1
c) subreport1 has a detail band with subreport2 nested in the subreport1
detail band
d) subreport2 contains a title band and a summary band.
d) The SkipWhenNoRecords property is set to true on the report and
subreports.
e) NoDataBehaviors is ndMessageOnly = True and ndBlankReport = True on
report and subreports

Delphi2006 and RB 10.04

The problem is when there is no data records in subreport2, the message
"Nodata found in this report" and the entire report is skipped. What I need
is to have the report and subreports printout, but no data in the detail
band of subreport2.

Any suggestions would be appreciated.

TIA

John Eastman

Comments

  • edited June 2007

    To include the master record in the report when corresponding detail records
    exists, set the detail DataPipeline.SkipWhenNoRecords property to False.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2007
    Hello

    Delphi 2006 - RB 10.04
    I have a detail band that contains only subreport1. Subreport1 contains
    group header, detail band, group footer bands. The Subreport1 detail band
    contains Subreport2. Subreport2 contains a Title band and a detail band.

    All NoDataBehavior properties are set to False with exception of ndBlankPage
    = True.
    All SkipWhenNoRecords properties are set to False

    The problem is when Subreport1 has a record and Subreport2 does not, a blank
    page is generated. In this scenerio, there is still data on Subreport1 that
    I wish to print along with the Title band of Subreport2.

    Any suggestions?

    TIA

    John


  • edited July 2007

    Try using ndBlankReport for subreport2.

    I also recommend updating to RB 10.06.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.