Dynamically created components on a report
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
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
This discussion has been closed.
Comments