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

variable height components

edited September 2011 in General
This is probably trivial stuff, but I want to use a section that does not
take up any space (vertical) if I do not wish (dynamically) to display it.
The only way I can find to do this is to use groups which I then make
invisible if I don't want them.

This is a lot of work and retro-fitting a group inside a page is even more
work.

How do i do this?

Comments

  • edited September 2011
    Hi Cedric,

    Rather than toggling the visibility of a group band, you could either
    use a TppRegion set to Stretch or child subreport. Then simply toggle
    the visibility of that component inside the Band.BeforePrint event based
    on what you would like to see.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2011
    If I use a region or a child sub report and I make it invisible it still
    takes up space on the preview, it shows as a blank area.
    What am I doing wrong?

    On Thu, 22 Sep 2011 17:31:19 +0200, Nico Cizik (Digital Metaphors)
  • edited September 2011
    This depends on the design of the report. First be sure the band has a
    dynamic height (phDynamic). Second, if there are any non-stretchable
    components below the empty region, they also need to be placed into a
    region which is then set to ShiftRelativeTo the invisible one.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.