Home RAP

Create TppShape in RAP

edited March 2008 in RAP
Hi

Is there a way to create shape-objects by code in RAP?

Thanks and regards
Robert

Comments

  • edited March 2008
    Hi Robert,

    Yes, it is possible to create any report component in RAP. I would first
    suggest creating any component in Delphi and getting that working, then move
    the code to RAP. Adding the following code to your Report.BeforePrint event
    will give you a simple shape.

    var
    lShape: TppShape;
    begin

    lShape := TppShape.Create(nil);
    lShape.Band := Report.HeaderBand;

    end;

    --
    Regards,

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

    Best Regards,

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