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

Subreport

edited August 2004 in General
Hi,
I have a subreport with a data field in the detail band that I am trying to
generate but this data field does not always contain data. When there is
data, the subreport is generated without any problems, but if the data field
returns no value, the detail band is not generated, even though the
subreport itself is generated with my report.
I was wondering how to print the detail band of a subreport even though the
data field contains no data.
Thank in advance,
BMAC

Comments

  • edited August 2004
    Hi BMAC,

    Try changing the TppSubreport.Report.NoDataBehaviors to have ndBlankReport
    := True. This is a published property and is accessable from the Delphi
    Object Inspector while designing your subreport.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    Thanks, this works, but not for all Subreports. Some of my subreports have
    only one data field which is a DBMemo and for some reason, these do not work
    the same way ... don't know why though!!!
    If you have other ideas, feel free to let me know!
    Thanks again,
    BMAC

  • edited August 2004
    Hi,

    In my testing (with DBMemos and DBTexts) everything seemed to work as
    expected. When I linked a DBMemo to a field in a datapipeline that
    contained no data, the memo field was empty but the rest of the detail band
    was printed. Which version of ReportBuilder are you using? If you are
    using the latest version, please send a small example in .zip format to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    I am using Enterprise edition version 7.03.
    I'm not sure I understand, you want me to send the *.pas file???




  • edited August 2004
    Could it be the SkipWhenNoRecords setting of the related datapipeline? That
    caught me out.
    Dave


  • edited August 2004
    Hi Bruce,

    An example created in ReportBuilder 7.04 that I could easily run on my
    machine would be ideal.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    I tried that, but it still doesn't print the DetailBand, it only prints the
    TitleBand. I would want it to display an empty box when there is no data so
    that when I print the report, I can write in the missing info and return in
    my data-entry application and enter it in the DB.
    I'll keep on trying ...
    BMAC

This discussion has been closed.