Create event in Delphi

How do I create an event for example BeforePrint a band of fast report in delphi 10 seattle ?

Comments

  • gpigpi
    edited 6:40AM
    If you have FR Standart, Professional, Enterpise with script support - use
    frxReport.LoadFromFile('reportfolder\test.fr3');
    with frxReport do begin
    frxreport.ScriptText.Clear; //clear script text
    frxreport.ScriptText.Add('procedure MasterDataOnBeforePrint(Sender: TfrxComponent);');
    frxreport.ScriptText.Add('Begin');
    frxreport.ScriptText.Add('Memotest.Color := $00FF0000;');
    frxreport.ScriptText.Add('end;');
    frxreport.ScriptText.Add('Begin');
    frxreport.ScriptText.Add('masterData.OnbeforePrint :='+''''+'MasterDataOnBeforePrint'+''''+';');
    frxreport.ScriptText.Add('end.');
    frxReport.ShowReport;
    end;
    

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.