TextRect and WordWrap

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

TextRect and WordWrap

Postby martinj » May 14th, 2007, 10:52 am

Can somebody tell me is there an easy way to print wrapped text with TextRect method?

Here's my code:

Code: Select all
      PrintPreview1.BeginDoc;
      begin
        r.Left := 250;
        r.Right := 900;
        r.Top := 100;
        r.Bottom := 5000;

        PrintPreview1.Canvas.TextRect(r, r.Left, r.Top,  Long Text);
      end;
      PrintPreview1.EndDoc;


Long Text is an memo field from database.

Thanks in Advance.
martinj
Member
Member
 
Posts: 3
Joined: May 14th, 2007, 10:36 am

Postby Kambiz » May 14th, 2007, 1:56 pm

Look for WrapText procedure in Delphi's Help. It is defined in SysUtils unit.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron