2011-10-19 4 views
2

Delphi 2009では、Fast Report 4.8をインストールし、いくつかのレポートを作成します。 FastReportのユーザー変更を保存する方法

myfrxReport.ShowReport(); 

は現在、いくつかのユーザーがレポートページを編集したいので、私はfrxDesignerを使用します。私のアプリケーションでは、私はこのように、これらのレポートを使用します。 しかし、私の問題は、「どうすればユーザーの変更を保存できますか?

答えて

1

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); 

TAppUtils.Confirm:何かをするユーザーを確認する方法であるかどうか

4

レポートをファイルとして使用すると、デザイナーでそのレポートファイルを上書きできます。次回にレポートがロードされると、ユーザーは変更されたレポートをロードします。またfrxDesigner.Restrictionsオプション

frxReport.LoadFromFile(aFileName); //The report filename with the user changes 
frxReport.PrepareReport(true); 
frxReport.ShowReport; 

チェック!

関連する問題