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
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