Delphi 如何在FastReport中保存用户更改

Delphi 如何在FastReport中保存用户更改,delphi,delphi-2009,fastreport,Delphi,Delphi 2009,Fastreport,在Delphi2009中,我安装了FastReport4.8,并创建了一些报告。在我的应用程序中,我使用以下报告: myfrxReport.ShowReport(); 现在一些用户想要编辑报告页面,所以我使用frxDesigner。 但我的问题是:“如何保存用户的更改?”将报表用作文件,然后用户可以在设计器中覆盖该报表文件。下次加载报告时,用户将加载修改后的报告 frxReport.LoadFromFile(aFileName); //The report filename with the

在Delphi2009中,我安装了FastReport4.8,并创建了一些报告。在我的应用程序中,我使用以下报告:

myfrxReport.ShowReport();
现在一些用户想要编辑报告页面,所以我使用frxDesigner。
但我的问题是:“如何保存用户的更改?”

将报表用作文件,然后用户可以在设计器中覆盖该报表文件。下次加载报告时,用户将加载修改后的报告

frxReport.LoadFromFile(aFileName); //The report filename with the user changes
frxReport.PrepareReport(true);
frxReport.ShowReport;
同时检查
frxDesigner.Restrictions
选项

u可以使用以下代码:

    if not FrxReport.LoadFromFile(AFileName) then
      FrxReport.DesignReport
    else if TAppUtils.Confirm('You Have Authority To Design Report. Do You Want To Design Report ?') then
      FrxReport.DesignReport
    else
      FrxReport.ShowReport(True);
确认:确认用户是否做某事的方法