Add page with text programmatically

Hello,

I'm a newbe and want create a report totally programmatically.

I did the following:
var
FRX : TfrxReport;
Blz : TfrxReportPage;
frMemo : TfrxMemoView;
begin
FRX := TfrxReport.Create(nil);

Blz := TfrxReportPage.Create(FRX);
Blz.CreateUniqueName;
Blz.SetDefaults;
Blz.Orientation := poPortrait;

frMemo := TfrxMemoView.Create(nil);
frMemo.Memo.Add('test');
FRX.Pages[0].Objects.Add(frMemo);
FRX.PrepareReport;
FRX.ShowPreparedReport;
end;

It crashes and asks for frxClass.pas.

Whatever I try, it does not work...

Help is needed
Regards

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:38AM
    read the programmers manual starting on 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.