Application hanging after designer call
marc59
LILLE (FRANCE)
I have made an application that offer report designing tool. For this, Fastreport is very extra.
But, when a report has been generated with Showreport method, if I call DesignReport methode, I cannot re-use Showreport method because application hangs. Same problem if I use preview of designer...
Please help me !
Thanks
But, when a report has been generated with Showreport method, if I call DesignReport methode, I cannot re-use Showreport method because application hangs. Same problem if I use preview of designer...
Please help me !
Thanks
Comments
I use
<span style='font-family:Courier'>frxReport.PrepareReport;
frxReport.ShowPreparedReport;
...
frxReport.DesigneReport;
...
frxReport.PrepareReport;
frxReport.ShowPreparedReport;</span>
instead of
<span style='font-family:Courier'>frxReport.ShowReport;
...
frxReport.DesigneReport;
...
frxReport.ShowReport;</span>
and i open/close manually datasource instead of let Fastreport made this itself.
In my application, the user can see a first preview of a standard report and if he want, he can update it by clicking a button. But, modifications are applyed on this live report without reload.
My report has also a complex data access with query and a lot of master/detail datasources.
I can try to reproduce this with a lite sample... But at this moment, I go to my bed, it is 1:10 AM in France.
procedure TForm1.DesignBClick(Sender: TObject);
begin
frxReport1.DesignReport;
end;
procedure TForm1.PreviewBClick(Sender: TObject);
begin
frxReport1.ShowReport;
end;