Designer events confusion

edited 8:17AM in FastReport VCL 5
Can I only have one TfrxDesigner component active in my app? By the looks of it, there is no link between the designer and the report - so if you have 2 designer components then how do the events get passed?

If its not possible to connect a designer with a report then I am thinking I should subclass the TfrxReport in order to have the broader context available in the designer event.

For example

TMyReport = class(TfrxReport)
procedure DoSaveAs;
end;

In the designer event I would type cast the TfrxReport component to TMyReport and call the DoSaveAs;

I hate to jump through hoops, it would be easier if a designer was attached to a report.

Is there a better way?

Leave a Comment