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

Regions and stretching

edited September 2002 in General

I have two report-wide regions within my detail band. Each of these regions
contains several memo fields. The first region represents the first record
and the second region represents the second record. I want to keep these
two regions together while maintaining the internal memos stretching
ability. I have tried using a third region which encapsulates the other two
regions and setting Keep Together to True but this has no effect.

All the memo fields stretch.
Both regions must stretch.
The second region must shift relative to the first region to avoid
overlapping.
The regions must stick together and not overlap pages.

Any ideas?

Thanks in advance,

Kieron


--
--
Kieron G Smith
helpIT systems ltd
kieron@finditx.com
http://wwww.helpit.co.uk/

Comments

  • edited September 2002
    Instead of using a third region, try using a child type subreport. Place the
    regions in the detail band of the subreport and set the SubReport's
    KeepTogether property to True...

    --
    Cheers,

    Tom Ollar
    Digital Metaphors Corporation
  • edited September 2002

    Cheers, Tom!

    Only problem is that the subreport is forcing a new page which I don't want.

    How do I stop that?

    Regards,

    Kieron

  • edited September 2002
    By setting the SubReport.KeepTogether to True, you are telling the engine:
    move to the next page if *both* regions in the subreport's detail band do
    not fit on the current page. It seems like there are just two possibilities
    here:

    Possibility 1: ShiftRelativeTo regions in main report
    Region 1 generates on Page 10
    Region 2 generates partially on Page 10
    Region 2 completes on Page 11

    Possibility 2: ShiftRelativeTo regions in detail band of KeepTogether
    subreport:
    Region 1 generates on Page 10 (starting half way down the page due to the
    previous generation of the subreport)
    Region 2 cannot fit on Page 10 and so the subreport moves to the next page
    Region 1 generates on Page 11 (starting at the top of the page)
    Region 2 generates on Page 11 and completes because it has more space now.

    So you can either break the generation of Region 2 across pages or always
    guarantee it has the most space to generate in possible (KeepTogether)

    --
    Cheers,

    Tom Ollar
    Digital Metaphors Corporation
This discussion has been closed.