Deleteing subreport in code
Hi,
How to delete a subreport in code?
Have tried with RemoveObject but it doesn't work.
/Ronny
How to delete a subreport in code?
Have tried with RemoveObject but it doesn't work.
/Ronny
This discussion has been closed.
Comments
You can simply call mySubReport.Free to remove the subreport and destroy the
subreport and all of the objects within it.
To remove any component from the report without freeing it, you can set its
Band property to nil. (i.e. mySubReport.Band := nil).
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks, obvious as usual,
Wishing you a very Merry Xmas and a new year that is every bit better than
than the last.
/Ronny