Removing component from template runtime
I'm trying to remove a component form the template at runtime, but i can't
seem to find the proper way to do that.
I'v tried RemoveComponent and RemoveObject from the parent of the component,
or from the band i know the component is at, but the component remains visible
in the design.
How do i do this??
greetings
Bas
seem to find the proper way to do that.
I'v tried RemoveComponent and RemoveObject from the parent of the component,
or from the band i know the component is at, but the component remains visible
in the design.
How do i do this??
greetings
Bas
This discussion has been closed.
Comments
Using a template event such as the OnLoadEnd, you should be able to simply
set the TppComponent.Band property to nil and that will remove it from the
report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for the suggestion!
It works!!