[reportlab-users] RE: paragraph out of table

Henning von Bargen H.vonBargen at t-p.com
Thu Nov 24 02:44:21 EST 2005


> From: wang bin <wangbin1979 at gmail.com>
> Subject: [reportlab-users] paragraph out of table
> To: reportlab-users at reportlab.com
> Message-ID: <f564059f0511230238o7686964er at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> hi everyone, I am a newbie learning to use reportlab to generate pdf.
> I gat a problem when a paragraph is too long for a table cell, it just
> went out of the table, I want to know if there is some attribute or
> parameter can control the wrap of the line ?
> 

I'm quite sure that what you mean is "when a string is too long..."
and not "when a paragraph is too long...".

You should use Paragraphs (the class!) inside table cells.
Then line-wrapping will work out of the box.

See also the test code inside platypes/tables.py

HTH
Henning


More information about the reportlab-users mailing list