Home Subreports

Keeptogether unpredictable

edited April 2003 in Subreports
I need to keep a subreport's detail band together. afaics
subreport.keeptogether applies to the whole report which is why
I have the following occur.

I have a subreport where the detail band containing 3 regions.
Region2 is set to shift relative to region1. Region 1 & 2 are a
left hand column and Region 3 is on the right. If I set the
subreport keeptogether to true then I get no records on the
first page but two and region1 of a third on the second. If I
turn off keep together I get two complete records on the first
page.

I can't put the entire contents of the detail band in a region
because I can't nest regions and I need region2 to move relative
to region1 whilst region3 expands as needed. It works fine
except keeping the whole lot together.

What can I do?

Comments

  • edited April 2003
    What regions do you need to keep together? Did you know you can print side
    by side subreports? Set Subreport.ParentWidth to false and create two
    subreports side by side. In the first subreport, print the left regions and
    in the second subreport print the right regions. Then try setting the
    KeepTogether on the left subreport? I don't know exactly what else you have
    in your report. Feel free to send a simple example to
    support@digital-metaphors.com and I'll model an example report that keeps
    the controls together on a page that you want to.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited May 2003
    Interesting feature - but it still doesn't work.
    With keeptogether true it shows none on the first page 2 and a bit on the
    second.

    The detail band is as follows

    xxxxxxxxxxxx xxxxxxxxxxxxxxx
    x r1a x x x
    x x x x
    xxxxxxxxxxxx x r2 x
    xxxxxxxxxxxx x x
    x r1b x x x
    xxxxxxxxxxxx xxxxxxxxxxxxxxx

    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    x summary x
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    I want r1 and 2 on the same page.

    I have emailed a sample that I hope will enable you to assist me.

  • edited May 2003
    >

    Alright, let's work with the example you'll send us (we haven't received it
    yet). Verify you sent it to support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited May 2003
    I sent an example, and received a working reply but unfortunately not
    satisfactory to my users. The soultion for me was a compromise of setting the
    detail band to static. I do often find myself trying to embed regions,
    forgetting they don't work. Would anyone else out there find embedded regions
    really useful?

  • edited May 2003
    One workaround is to use subreports that aren't connected to a datapipeline
    and have their AutoStop property set to true. This way you can nest a
    subreport inside of a region.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.