Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Howto insert Labels at runtime
rbuser
January 2002
edited January 2002
in
General
Hi there,
how can i insert/remove labels and other report components by code at
runtime ?
How can i add a label to a Region by code ?
Thank's for any help.
Ingo
Comments
digitalmetaphors
January 2002
edited January 2002
Create the label and set its properties, such as top left, autosize,
caption... Then set the TppLabel.Band := Report.DetailBand;
To add the label to a region in code, you'll also want to set the Region
property:
ppLabel1.Region := ppRegion1;
This assigns the label to have the region as a parent, which is necessary
for the region to control the label.
There is an example your can download and run:
http://www.digital-metaphors.com/tips/DynamicReportCreation.zip
Cheers,
Jim Bennett
Digital Metaphors
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
This discussion has been closed.
Comments
caption... Then set the TppLabel.Band := Report.DetailBand;
To add the label to a region in code, you'll also want to set the Region
property:
ppLabel1.Region := ppRegion1;
This assigns the label to have the region as a parent, which is necessary
for the region to control the label.
There is an example your can download and run:
http://www.digital-metaphors.com/tips/DynamicReportCreation.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com