Are you trying to print the text from ReportBuilder? If so, you can simply place a TppMemo object on a report and set its Text property equal to the Text property of the TMemo of your main application.
If you simply want to set the text of a TppMemo on a report to the text of a TMemo on one of your forms, all you have to do is set the Text property of one equal to the Text property of the other. This can be easily demonstrated by placing a report, a button, and a TMemo on a form. Inside the report place an empty TppMemo. Then in the Button's OnClick event use the following code.
procedure TForm1.Button1Click(Sender: TObject); begin ppMemo1.Text := Memo1.Text;
ppReport1.Print; end;
Then when you run any text you type into the TMemo object will appear in the report.
Comments
Are you trying to print the text from ReportBuilder? If so, you can simply
place a TppMemo object on a report and set its Text property equal to the
Text property of the TMemo of your main application.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks, any exaple which describe this?
/Ronny
If you simply want to set the text of a TppMemo on a report to the text of a
TMemo on one of your forms, all you have to do is set the Text property of
one equal to the Text property of the other. This can be easily
demonstrated by placing a report, a button, and a TMemo on a form. Inside
the report place an empty TppMemo. Then in the Button's OnClick event use
the following code.
procedure TForm1.Button1Click(Sender: TObject);
begin
ppMemo1.Text := Memo1.Text;
ppReport1.Print;
end;
Then when you run any text you type into the TMemo object will appear in the
report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com