In delphi Code to use FastReport Aggregate functions

Hello!

Is it possible to add aggregate funtions from code.
I created report partialy in designer then access its
components in delphi to like so:

But have anyone any experiance with adding agregate functions to TfrxMemoView?
MasterData : TfrxMasterData;
  Memo: TfrxMemoView;

begin

  with UserSession do
  begin
  frxReport.Clear;

  frxReport.LoadFromFile(ReportFilePath,true);
  frxReport.DataSets.Add(frxDBDataSet);

  MasterData:= frxReport.FindObject('MasterData') as TfrxMasterData;
  MasterData.DataSet := frxDBDataSet;

  LoadXMLData(IDmer);
  LoadTexts(frxReport,LanguageINIFile,Language);
  LoadValues(frxReport);


  FDQueryReport.SQL.Text:='SELECT * FROM ....


  FDQueryReport.Open;


  memo:= frxReport.FindObject('MemoData') as TfrxMemoView;
  Memo.DataSet := frxDBDataSet;
  Memo.DataField := 'nr_motorja';  // DB field

Comments

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.