Defining code behind for a report created from code

Hello,


I am creating a report from Delphi code. Now I want to add the report some code behind. How do I do that? At best the code behind is Delphi code, but can be pascalscript too.


           Memo := TfrxMemoView.Create(SubMasterDataBand);

           Memo.Name := 'MemoResC' + InttoStr(c);

           Memo.Top := 0;

           Memo.Left := LeftCol;

           Memo.Width := BoundWidth / (Grid.ColWidths[ColIdx] / SubGrid.ColWidths[c]);

           LeftCol := LeftCol + Memo.Width;

           Memo.Frame.Typ := [];

           Memo.Font.Size := round(SubGrid.Font.Size * ScaleFactor);// - 3;

           Memo.StretchMode := smMaxHeight;

           Memo.AllowHTMLTags := true;

           Memo.DataSet := frxDBDatasetDetail;

           Memo.DataField := 'HTMLResultCol'+IntToStr(c+1);

           Memo.AllowExpressions := false;

           Memo.WordWrap := true;

           Memo.AutoWidth := true;

           Memo.OnAfterData := 'OnAfterDataColor';


Thanks for your help!

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.