Content of Memo in Delphi to a Text Object in FastReport?

edited July 2015 in FastReport 4.0
Hi,

Have a simple problem. I want to preview and print som tekst lines in a Tmemo in Delphi called memTAB. And I want to use FastReport5 showing the lines in memviewTAB..

In the OnBeforePrint event of the frxReportPage I tried:

procedure TForm1.frxReport2BeforePrint(Sender: TfrxReportComponent);
var
loop : integer;
begin
for loop:= 0 to memTAB.Lines.Count-1 begin
if TfrxMemoView(Sender).Name = 'memviewTAB' then
TfrxMemoView(Sender).Text:= memTAB.Lines[loop];
end;
end;

This gives me an error like this: undeclared identifier: memTAB

FastReport is not able to "see" the variables from Delphi? How do I solve this? Small rogram demo is most welcome :-)

Best Regards
Lars

Leave a Comment