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

Hiding subreport - how ?

edited June 2005 in Subreports
Hello,

I have a report containing 1 subreport. Several data pipelines.
First page contains detail band, with the "main data" - and at the
bottom of the detail there ia a subreport.
Subreport contains one page. So, two pages are printed.
Under certain conditions I want only first page to be printed, and
nothing else.
Setting subreport.visible := false just hides subreport, but on the
second page I have data repeated from the main report... looks strange
to me.

ReportBuilder 6.03, Delphi 7 Ent.

Any help will be appreciated.
Jerry

Comments

  • edited June 2005
    Hi Jerry,

    Setting the Subreport.Visible property to False prevents it from being
    generated to the device at all so the report should print as if the
    subreport does not exist. Be sure that all the data in the main report's
    detail band can fit on a single page. Try cutting the subreport out of your
    report (paste it back later) and then print. This is what your report will
    look like when you set the Visible property to False.


    This is not a valid combination. Are you perhaps using RB 7.03 or Delphi 6?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    "Nico Cizik (Digital Metaphors)" wrote
This discussion has been closed.