How to create a report by code?

edited 11:59PM in FastReport 3.0
I wonder if it is possible to create a report by code and not using the desginer?

Perhaps something like this:
procedure TForm1.Button1Click(Sender: TObject);
var
  r: TfrxReport;
  bt: TfrxReportTitle;
  mv: TfrxMemoView;
begin
  r:= TfrxReport.Create(Self);
  bt:= TfrxReportTitle.Create(frxReport1);
  mv:= TfrxMemoView.Create(frxReport1);
  mv.Parent:= bt;
  mv.Text:= 'Hello World!!';

  frxReport1.Engine.NewPage;
  frxReport1.Engine.ShowBand(bt);
  ...



Regards,
Mikael

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:59PM
    read the programmers manual starting at page 23.
    ;)

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.