Inherited events and functions

I have a base report that has a OnBeforePrint event in witch I set some memo's text values like the reports title and some query conditions.
But this event is not fired from the inherited report, when i look into the script of the inherited report the script looks like this:

begin

end.
{
**********Script from parent report**********

procedure basePageOnBeforePrint(Sender: TfrxComponent);
begin
memQueryCenter.text := GetWhereCenter();
memQuery.text := GetWhere();
memTitle.text := GetTitle();
end;

begin

end.
}

Is it possible to inherit this event/functions because sooner or later I will have lots of reports inherited from this base report and it will be a PITA if i will have to change the script manually on all inherited reports.

Please tell me if I am doing something wrong. I am still using the demo version FYI.

kind regards, Jan

Comments

  • gpigpi
    edited 2:31PM
    FR doesn't support script inheritance at this moment

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.