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

Deleteing subreport in code

edited December 2003 in Subreports
Hi,

How to delete a subreport in code?
Have tried with RemoveObject but it doesn't work.


/Ronny

Comments

  • edited December 2003

    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
  • edited December 2003
    Nard,

    Thanks, obvious as usual,

    Wishing you a very Merry Xmas and a new year that is every bit better than
    than the last.

    /Ronny
This discussion has been closed.