Cannot save changes to a report

edited 2:15AM in FastReport 4.0
Hello,

When making changes to a report I automatically need to save it
without to locate it with the save as command, so i have made that:
function TfrmListeCaisse.frxDesigner1SaveReport(Report: TfrxReport;
  SaveAs: Boolean): Boolean;
begin
SaveAs:=True;
end;

Here is the code for loading report
frxreport1.clear;
 frxReport1.LoadFromFile('C:\Report\etat_caisse.fr3');
 frxReport1.DesignReport();

The report is well loaded but not saved, can you help me please ?

Thanks

Comments

  • gpigpi
    edited 2:15AM
    Try
    frxreport1.clear;
    frxReport1.LoadFromFile('C:\Report\etat_caisse.fr3');
    frxReport1.DesignReport();
    frxReport1.SaveToFile('C:\Report\etat_caisse.fr3');
    
  • edited May 2015
    It works
    Thank you very much gpi >

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.