You will need to 'PrepareReport' in a thread to enable your application to be 'responsive'. Your application would have a 'Cancel' button that would set the Terminated flag against the FastReport object that is was preparing.
All this is quite complicated; so if you just have the code:
with frReport1 do begin
if PrepareReport then
ShowPreparedReport;
end;
The PrepareReport will show a dialog with a cancel button while it is being prepared.
Comments
frReport1.Terminated:=True;
All this is quite complicated; so if you just have the code:
with frReport1 do begin
if PrepareReport then
ShowPreparedReport;
end;
The PrepareReport will show a dialog with a cancel button while it is being prepared.