Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TMemo Print

edited November 2004 in General
Hi,

Is there any easy way of printing the content in a TMemo which is on a
form?


/Ronny

Comments

  • edited November 2004
    Hi Ronny,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2004
    Nico,

    Thanks, any exaple which describe this?

    /Ronny

  • edited November 2004
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.