region keeptogether and shiftrelativeto
I have a region below a subreport, the subreprot is pbChild, the region has
set keeptogether to true and shiftrelative to the subreport, and I find that
the content inside the region is still break into two page, why?
is it shiftrelativeto would afftect the result of keeptogether?
set keeptogether to true and shiftrelative to the subreport, and I find that
the content inside the region is still break into two page, why?
is it shiftrelativeto would afftect the result of keeptogether?
This discussion has been closed.
Comments
This is not a known issue with ReportBuilder. Please create a small example
of this behavior and send it in .zip format to support@digital-metaphors.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
problem is seems to be fixed by the following method:
In the beforeprint of group footer band,
Set the ppRegion1.shiftRelativeTo to nil first,
then if the above subreport (subreport above the ppRegion1) datasource has
record, then set the ppRegion1.ShiftRelativeto to that subreport, otherwise
set ppRegion1.ShiftRelativeTo to nil.
In the Afterprint of group footer band,
Set the ppRegion1.ShiftRelativeTo to nil
The origin setting is ppRegion1.ShiftRelativeTo := ppSubreport in all
condition.
But I still don't know why the origin problem occur (keeptogehter not
function properly) and why the above method seems to fix it, Do you have any
idea?
I'm unable to recreate this behavior on my machine. I'm not sure why this
might be happening. Which version of ReportBuilder/Delphi are you currently
using?
--
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