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

Empty subreport

edited April 2003 in Subreports
Hello all,

I have a report with a subreport. When the Datapipeline of the subreport is
empty I don''t want it to print.

The height of the detailband of de mainreport is set to 20 pix. The
subreport is located at the bottom of the detailband. But when is it not
printed I still see white space (where de subreport would be printed if not
empty).

How can I solve this? (Something like a PrintIFEmpty property of the
subreport set to false)

Best regards,

Jos Aikema
LocusWMS bv
Almere - The Netherlands

Comments

  • edited April 2003
    The subreport shouldn't generate by default when it has no data. In the main
    report, use the ShiftRelativeTo feature of the controls below the subrepotr
    to shift up when the subreport doesn't print. If you have no other
    stretchable controls below, then drop the other controls in a TppRegion
    below the subreport and set the region to ShiftRelativeTo.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    There are no controls below the subreport. Let me try to explain.

    The report looks like

    Articlenumber description
    315686 This is a article <-- Mainreport detail 1
    Dit is een artikel <-- subreport detail 1
    Ce'st un article <-- subreport detail 2
    588978 Another article <-- Mainreport detail 2
    Een ander artikel <- Subreport detail

    When there are no records of the subreport, the report should look like:

    Articlenumber description
    315686 This is a article
    588978 Another article

    If there is no data, the subreport won't print. Thats okay but is left some
    white space below the detail of the mainreport.

    How can I solve this??


    On 3-Apr-2003, "Jim Bennett \(Digital Metaphors\)"
  • edited April 2003
    Make sure there the detail band in the main report is dynamic height. Also,
    check to make sure that there isn't a bottom offset in the detail band as
    well. It works correct in our tests here. Can you send a simple zipped demo
    using DBDemos that shows the problem to support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.