KeepTogether in TppSubReport
Hi
I had 4 regions in a detail band, arranged one below the other and
moving in relation to the one above. Each contains a TppDBMemo with
Stretch set to true and the Region KeepTogether also set to true.
The report was page breaking correctly at a region. However, as the
amount of text is small I wanted all the regions to appear on the same
page. I moved them to a SubReport and set KeepTogether to true. This
does not have the result I was expecting as the page still breaks on a
region.
Is there a problem with this arrangement or is there another way to
achieve what I am attempting?
Dave
I had 4 regions in a detail band, arranged one below the other and
moving in relation to the one above. Each contains a TppDBMemo with
Stretch set to true and the Region KeepTogether also set to true.
The report was page breaking correctly at a region. However, as the
amount of text is small I wanted all the regions to appear on the same
page. I moved them to a SubReport and set KeepTogether to true. This
does not have the result I was expecting as the page still breaks on a
region.
Is there a problem with this arrangement or is there another way to
achieve what I am attempting?
Dave
This discussion has been closed.
Comments
Did you then set the KeepTogether of the regions to False? Keeping this
property set to True will cause the regions to move to the next page if
there is not enough room to fit in the given space on the current page.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I tried that but it makes things worse by breaking in the middle of regions.
I'm using 9.02 with Delphi 2005 Ent.
I'm a bit confused about what you would like to happen. I'm mainly unclear
about what was wrong before you added the subreport to your report design.
Setting a regon to KeepTogether will only break a page when there is not
enough room to fit it on the current page. If the page is being broken for
smaller regions, it is because there is not enough room to fit the next
region on that page.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
What I am trying to achieve is to have all 4 regions displayed on the
same page. While they were in the detail band of the main report, 1 or
more of the regions might be held over to the following page.
I hoped that transferring them to the detail band of a subreport with
subreport.KeepTogether set to true would cause RB to throw a page if
there was insufficient room to print the 4 regions on the current page.
That is not what is happening.
If all four regions are inside a subreport with KeepTogether set to True and
there is insufficient room for the regions to fit on one page, ReportBuilder
will try to move the entire subreport to the next page. If you are looking
to keep the subreport together as well as keep the items inside the detail
band of the subreport together, you may need to add another subreport to the
first one to hold the 4 regions.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
the main report datapipeline. I removed that and reset the data controls
so everything now works as expected. Obvious really!
Thanks for your patience, Nico