Detecting which button pressed on closing report designer

edited October 2017 in FastReport 4.0
Hello,

When I design my report using frxReport1.DesignReport(), I need to know please, which button I pressed in the dialogbox displayed on closing designer report in order to save or not the report changes using frxReport1.SaveToFile(FileName)
Thanks.

Comments

  • gpigpi
    edited 4:25PM
    Use
    function TForm1.frxDesigner1SaveReport(Report: TfrxReport;
      SaveAs: Boolean): Boolean;
    begin
      if Report.Modified then ...
    end;
    
  • edited 4:25PM
    Thanks gpi >
  • edited July 2019
    Freudd wrote: »
    Hello,

    When I design my report using frxReport1.DesignReport(), I need to know please, which button I pressed in the dialogbox displayed on closing designer report in order testogen here to save or not the report changes using frxReport1.SaveToFile(FileName)
    Thanks.

    Works like a charm. Thanks for sharing.

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.