I've played a little bit with Report.Pages and wonders, how to reload previous saved report pages. If I try this - using .LoadFromFile - I got many AV's.
i assume you are trying to reload a previously previewed report saved as an fp3 file.
procedure TForm1.Button1Click(Sender: TObject);
begin
frxreport1.Clear;
frxreport1.PreviewPages.LoadFromFile('report.fp3');
frxreport1.ShowPreparedReport;
end;
I would like also to show prepared reports in the default preview window. I have tried that, and I get an access violation if I don't assign a preview component to the property frxreport1.Preview. Could you help me, please? Thank You.
Comments
procedure TForm1.Button1Click(Sender: TObject);
begin
frxreport1.Clear;
frxreport1.PreviewPages.LoadFromFile('report.fp3');
frxreport1.ShowPreparedReport;
end;