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

Dynamically created components on a report

edited January 2002 in General
I am trying to add a report component through code. If I were to do this
for a regular component and a form, I would do something like:

edt := TEdit.Create(Self);
edt.Parent := Form1;
edt.Left := 0, etc.

However, when I try to set the parent of a TppComponent, (say to
ppDetailBand1) the compiler tells me that Parent is a read-only property.

What is the best way to add a component to a TppReport at runtime?

Thanks
Jennifer Graeler

Comments

This discussion has been closed.