Cencelling preview
Hi,
I've created a custom preview form using TfrxPreview component.
For some very large reports, if I close preview form before the end of loading process, I receive a List out of bounds error message. I think I need to cancel processing.
I've tried:
frxPreview.Cancel
frxReport.Engine.StopReport
but the problem persists.
Any suggestion?
Thanks,
Rafael
I've created a custom preview form using TfrxPreview component.
For some very large reports, if I close preview form before the end of loading process, I receive a List out of bounds error message. I think I need to cancel processing.
I've tried:
frxPreview.Cancel
frxReport.Engine.StopReport
but the problem persists.
Any suggestion?
Thanks,
Rafael
Comments
I get EPrivilege class error (Privileged instruction)
I want to stop preparing report and show prepared pages (if they are)
I want to break process preparing pages !
procedure TFormRptProgress.btnStopClick(Sender: TObject);
begin
fReport.Terminated := true;
end;
fReport.Terminated := true
makes "Privileged instruction" error