Runtime reports.

Hello,

In fastreport 2 there used to be an demo how to create a report on runtime.
There is no such example in FR3.

Does anybody know how to do this in FR3?

Comments

  • edited 10:56AM
    var
    Page:TfrxReportPage;
    Band:TfrxMasterData;
    Memo:TfrxMemoView;
    begin
    Page := TfrxReportPage.Create(frxReport1);
    Page.CreateUniqueName;
    Page.LeftMargin := 10;
    Page.RightMargin := 10;
    Page.TopMargin := 10;
    Page.BottomMargin := 10;
    Band := TfrxMasterData.Create(Page);
    Band.CreateUniqueName;
    Band.SetBounds(10,0,150,22);
    Band.RowCount := 20; //virtual dataset
    Memo := TfrxMemoView.Create(Page);
    Memo.CreateUniqueName;
    Memo.SetBounds(1,20,150,20);
    Memo.Text := 'MEMO_TEXT';
    frxReport1.DesignReport;
    
  • edited 10:56AM
    Thank you, that was just what I needed,

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.