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

region keeptogether and shiftrelativeto

edited June 2004 in General
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?

Comments

  • edited June 2004
    Hello,

    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/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    It is very very difficult to create an small example for you, but I feel the
    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?

  • edited July 2004
    Hello,

    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/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.