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

Add TppLabel to Region in run-time

edited August 2004 in General
Hi gurus,

I would appreciate if you could provide some code snippet how to dinamically
add TppLabel to TppRegion in run-time.

With kind regards,
Dmitry

Comments

  • edited August 2004
    Hi Dmitry,

    To add a report component to a region, you simply need to assign its Region
    property to the propert region component. For example...

    lLabel := TppLabel.Create(Self);
    lLabel.Band := ppReport1.DetailBand;
    lLabel.Region := ppRegion1;
    lLabel.Text := 'I am a label!!';

    --
    Best Regards,

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