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

Set Subreport Position in RAP

edited May 2011 in RAP
I have:

report
subreport1
subreport2.

I want to set subreport2.top := nnn in RAP.

I can set the position using the editor, but which and how event do i use to
set it in RAP (eventually wanting to assign it from a dataset)

Thanks

Lawrence

Comments

  • edited May 2011
    Hi Lawrence,

    The Top property represents the position inside the band or region the
    subreport resides. You need to be sure you assign this property before
    the subreport is printed. Try using the Band.BeforePrint event as a
    start point.

    I highly suggest getting this working in Delphi first so you can debug
    your code before moving it to RAP.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2011
    Thanks, that works. I think I was looking in the SubReport1.BeforePrint but
    there wasn't such an event. I found the one you said - great.

This discussion has been closed.