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

TppShape in RAP

edited April 2003 in RAP
Hi,

In RAP, I'm trying to create a 'Legend' in the footer of a report, but it
can't be created until after all the data has been traversed. Can I create
this in RAP? It seems the only place I can successfully create report
components is in Report.BeforePrint and this isn't possible for this report.
Am I missing something? I'm using something like the following:

var
lBox : TppShape;

begin
lBox := TppShape.create(rgnFooter);
lBox.left := 0;
lBox.Pen.Color := clBlack;
lBox.Brush.Color := clRed;
lBox.Region := rgnFooter;
lbox.Width := 1;
lbox.Height := 1;
end;

Thanks,

Leah

Comments

  • edited April 2003
    Sorry, I found the answer in the "Dynamically Creating Shapes" thread.
    Don't know how i missed it the first, second and third times i looked.

    Leah

This discussion has been closed.