#1 2018-05-02 08:40:55

anuchit
Member
Registered: 2018-05-02
Posts: 4

How to Word Wrap Canvas.TextOut

PDF Document can Word Wrap ?
.. Thank you for reply

Offline

#2 2018-05-02 10:00:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: How to Word Wrap Canvas.TextOut

On the PDF Canvas, TPdfCanvas.MultilineTextRect() can do word wrapping.

On the GDI Canvas, the text layout should be computed ahead of time, before writing the canvas.
It currently doesn't support DT_WORDBREAK IIRC.

But the easiest is to use the mORMotReport.pas unit which does easy text process, including word wrapping.

Online

#3 2018-05-03 02:15:39

anuchit
Member
Registered: 2018-05-02
Posts: 4

Re: How to Word Wrap Canvas.TextOut

Thank you so much

Offline

Board footer

Powered by FluxBB