Cannot save changes to a report

edited 2:26AM 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:26AM
    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