How to access to the report object from Delphi?

Question: How to access to the report object from Delphi?

Answer:

FastReport objects is not a components and can be accessed this way:

1
2
3
4
5
6
7
8
9
10
11
var
t: TfrMemoView;
begin
t := TfrMemoView(frReport1.FindObject('Memo1'));
 
if t <> nil then
t.Memo.Text := 'FastReport';
// or this:
if t <> nil then
t.Prop['Memo'] := 'FastReport';
end;