Delete frxComponent from report programmatically

Hello,

I'm creating some memo views on runtime and keeping tabs in a list.

Before I prepare the report, I want to clear the list, freeing the objects and I would like them to be removed from the report. Alas, freeing a TfrxComponent apparently does not remove it from the report.

I've tried with frxReport1.RemoveComponent, but it doesn't work (when I create the objects again I can see them overlapping, and also some unrelated objects in the report disappear)

How can I delete an object from a report?

Comments

  • gpigpi
    edited 3:32AM
    Use frxReport1.FindObject('Memo1').Free;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.