Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Delphi FastReport4:OnBeforePrint从不在frxReport.ShowPreparedReport上执行_Delphi_Fastreport - Fatal编程技术网

Delphi FastReport4:OnBeforePrint从不在frxReport.ShowPreparedReport上执行

Delphi FastReport4:OnBeforePrint从不在frxReport.ShowPreparedReport上执行,delphi,fastreport,Delphi,Fastreport,我正在使用Delphi XE5。 在我的GroupFooter中,我试图在满足条件时隐藏几个备忘录 procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent); begin ShowMessage('a'); if <frxDB."total_payment"> <= 0 then begin Memo27.Visible := False;

我正在使用Delphi XE5。
在我的GroupFooter中,我试图在满足条件时隐藏几个备忘录

procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);
begin
  ShowMessage('a');                              
  if <frxDB."total_payment"> <= 0 then begin
    Memo27.Visible := False;                                                                              
    Memo28.Visible := False;                                                                              
    Memo29.Visible := False;                                                                              
    Memo30.Visible := False;                                                                              
  end;            
end;
我发现在frxReport.ShowPreparedReport命令之后显示报表时,OnBeforePrint事件从不激发,但当我尝试在设计器中预览它时,它会正常工作。 我一直在想我错过了什么。 有人能帮忙吗


谢谢

我最近发现这是因为FastReport 4演示版与Embarcadero RAD Studio XE5捆绑在一起。完整版本工作得很好,但是从演示捆绑版本创建的任何fr3文件都不能在完整版本中打开

  Report.LoadFromFile(CurDir+'reports/invoice/'+ReportName);
  if Report.PrepareReport then
    Report.ShowPreparedReport;