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

how to print report if subreport is empty

edited December 2006 in General
?Hi,

I've a report within subreport.

sometime my subreport is empty but i need to print my report

how to print my report if subreport is empty?

tks



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited December 2006
    Hi Ennio,

    Be sure the NoDataBehaviors property of your report and subreport is set to
    ndBlankReport rather than ndBlankPage. This will allow non-data aware
    components to show up even if there is no data available.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2006
    Hi Ennio,

    Also be sure you have the SkipWhenNoRecords property of the Detail Pipeline
    set to False.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2006
    my report is set to ndBlankReport and my subreport too.
    my report have only a DetailBand.
    I need to print only 1 record Master with/without details

    the report show only the label without the data

    my report is attached to pipeline1 (DatasourceMaster)
    my subreport is attached to pipeline2 (DataSourceDetail)

    if the DataSourceDetail is empty then the report show only de label and
    not show the data.

    if the DataSourceDetail is not empty then the report is ok.

    how can I resopve?

    tks



    set to



    --- posted by geoForum on http://delphi.newswhat.com
  • edited December 2006
    Hi Nico,

    tksssssssssss very much!!!!

    this is my problem!

    now i've switch to false SkipWhenNoRecords and all is ok!

    tks for your help



    Pipeline
    and



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.