How to create a report by code?
I wonder if it is possible to create a report by code and not using the desginer?
Perhaps something like this:
Regards,
Mikael
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