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

Regions alignment

edited January 2003 in General
I have 4 regions whereby all of them are laid out horizontally -

one on the left - Region1.
one in the middle - Region2
one on the right - Region3
one on the extreme right top - Region4
one on the extreme right bottom - Region5.

Of the above regions, Region1, Region2 and Region 3 always remain fixed
because I have added data-items directly to the regions.

Region4 and Region5 have sub-reports in it. So they expand/contract based on
the data in the subreports. Sometimes when there is no data, then the region
4 and 5 do not appear.

Now my question is how do I make sure that the height of region1 (left),
region2 (middle), region3 (right) is as much the combined height of
expanding height of Region4 (extreme right top) and Region5 (extreme right
bottom) ?

And if the combined height of Region4 and Region5 is less than the height of
the Region1, Region2 and Region3, then how to make the combined height of
Region4 and Region5 size up to the height of Region1, Region2 and Region3 ?

If my question is confusing, then I can explain again.

Hope to hear more on this.

Regards,
Padmaja.

Comments

  • edited January 2003
    Have you examined the ShiftWithParent property? Is this the behavior that
    you are looking for? What about StretchWithParent? I think StretchWithParent
    is what you should set on the Regions 1,2 and 3.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    ShiftWithParent moves the region but does not adjust the height of the
    region.

    StretchWithParent does adjust the height of Region 2 and Region3, but when I
    do it for Region1, then the subreport showing data in Region5 dissapears.
    And when I uncheck the StretchWithParent of Region1, then the data in
    Region5 appears again.

    Not able to understand how the data dissapears. Any ideas about this ?

    Also I have a question ? What does Parent here refer to ?

    Padmaja.

  • edited January 2003
    It sounds as if the subreport or Region5 is set to ShiftRelativeTo Region1.
    If that is not the case then can you send me a demo report using DBDemos
    that shows the problem and I can get it working how you want it to. Send it
    to support@digital-metaphors.com

    In the context of a region, the Parent refers to the band it is in. When the
    band stretches to contain the other regions that are stretching, then the
    other regions can be set the stretch with the band so that they are the same
    When a component is inside a region, then the region is the component's
    parent. An easy way to play with it is to drop some DBMemos in a report,
    along with some regions and DBMemos in those regiosn and add some colored
    shapes to the band to test the different stretch and shift property settings
    on those shapes.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    Yes, in the following scenario:

    one on the left - Region1.

    Since Region 4 and Region 5 have subreports in them, I have set Region5
    ShiftRelativeTo Region4. Does this impact the dissapearing data in Region 5
    when I check StretchWithParent for Region1 ?

    Padmaja.

  • edited January 2003
    If the only relationship between Region 1 and Region 4 and 5 is that they
    are all in the same band, and StretchWithParent for Region 1 causes Region 5
    to disappear, then that doesn't sound like the correct behavior. Please send
    a simple demo project to support@digital-metaphors.com that reproduces the
    behavior using DBDemos or Northwinds demo databases. This is the only way I
    can find out what is happening in your report.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.