Home General

how to reparent existing components through code

edited May 2010 in General
hi,
i need to make some changes to existing customized POS reports

for example, i need to place some tpp components into a new region and
shiftrelative that region.
now i can add or delete components in the saved design but i'm missing
something in the process of reparenting existing components to a region.
i can't simply delete and recreate cause that will result in customization
loss...

tia,
marc

Comments

  • edited June 2010
    The 'parent' is the band or region property of the component

    myLabel.Band := myReport.Detailband; // label's parent is detail band

    myLabel.Region := myRegion; // label's parent is region



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2010
    thx!
    it had to be something simple :)

  • edited June 2010
    Hi Nard,
    another question:

    how do i delete rap code assigned on the for example BeforePrint of a
    GroupFooter?

    tia,
    marc

  • edited June 2010
    This rbWiki article shows how to iterate over the RAP programs. You can
    delete a RAP program by calling Program.Free.

    http://www.digital-metaphors.com/rbWiki/RAP/Fundamentals/How_To...Modify_RAP_Programs_in_Code



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.