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

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.