Regions in same band
I have several regions in the detail band (ShiftRelativeTo is used to
associate them). Which ones are printed is determine in the
DetailBeforePrint event. My problem is that the ones that are printed are
kept together ie are always printed in the same page. Is there a way to
avoid this because it sometimes results in a lot of empty space.
Thanks
Yannis
associate them). Which ones are printed is determine in the
DetailBeforePrint event. My problem is that the ones that are printed are
kept together ie are always printed in the same page. Is there a way to
avoid this because it sometimes results in a lot of empty space.
Thanks
Yannis
This discussion has been closed.
Comments
I'm a bit unclear about what you would like to happen here. By definition,
KeepTogether will break a page if there is not enough room on the current
page to fit the region. If you turn KeepTogether off, you will not see this
behavior. How exactly would you like your report to look in this situation?
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Where do I set KeepTogether in the end user designer? That will probably do
the trick.
Thanks
Yannis
If you right click over the region a popup menu should display the
KeepTogether option toward the top.
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
All my regions have the KeepTogether property unchecked and that means that
their contents can be displayed in 2 pages. That does not happen. But my
main problem is that regions in the same band (detail) are kept together. I
know that the page changes when the height of a band exceeds the available
space. Is the height of a band calculated as the sum of the heights of its
regions? I assume so. However does the fact that a region is not visible
taken into account when the height of a band is calculated? I set the
visibility of each region in the BeforePrint even of the band.
Thanks
Yannis
I am unsure why the regions are keeping together when you have the
TppRegion.KeepTogether set to False. Be sure they are not inside a group or
subreport with keeptogether set to True. If you set the Region.Stretch to
True, ReportBuilder will shrink the space used in the band for that region
automatically if the region is invisible. If you are still having problems
with Keeptogether, please put together a small example that demonstrates
this behavior and send it in .zip format to support@digital-metphors.com and
I'll take a look at it for you.
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com