Dynamic Creation of TFrxReport
Hai,
I am using FastReport 4.0 along with Delphi 5.I want to view more than one report from my application.The number of reports that i want to see may vary according to time.The thing is,I want to create and Destroy TFrxReport componants dynamically according to requirement.I have the code with me to create it dynamically,But I don't know from where it is
to be destroyed.
Can any one help me to create and destroy TFrxReport dynamically ?.
The method that i am using to create is given below:
frxReportShowReport := TfrxReport.Create(self);
with frxReportShowReport do
begin
PreviewOptions.AllowEdit := False;
PreviewOptions.MDIChild := True;
PreviewOptions.Modal := False;
PreviewOptions.Maximized := True;
ShowProgress := True;
end;
frxReportShowReport.LoadFromFile(1.fr3);
frxReportShowReport.ShowReport;
I am using FastReport 4.0 along with Delphi 5.I want to view more than one report from my application.The number of reports that i want to see may vary according to time.The thing is,I want to create and Destroy TFrxReport componants dynamically according to requirement.I have the code with me to create it dynamically,But I don't know from where it is
to be destroyed.
Can any one help me to create and destroy TFrxReport dynamically ?.
The method that i am using to create is given below:
frxReportShowReport := TfrxReport.Create(self);
with frxReportShowReport do
begin
PreviewOptions.AllowEdit := False;
PreviewOptions.MDIChild := True;
PreviewOptions.Modal := False;
PreviewOptions.Maximized := True;
ShowProgress := True;
end;
frxReportShowReport.LoadFromFile(1.fr3);
frxReportShowReport.ShowReport;