Canceling Report Execution

My user is telling me that he could not cancel a long report execution?

is there any trick for this ?

thanks

Comments

  • edited 7:49AM
    Try setting:
    frReport1.Terminated:=True;
  • edited 7:49AM
    but where should i put this code?
  • edited 7:49AM
    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.