[reportlab-users] [BUG] Table cell too big
Dirk Holtwick
dirk.holtwick at gmail.com
Wed Oct 22 11:01:50 EDT 2008
Hi,
there is an old issue with Reportlab tables that you get an error if a
table cell is larger than the page itself, because a table cell will not
be splitted inside. The traceback looks somewhat like this
-----------------8<---------------[cut here]
...
File
"F:\work\xhtml2pdf-30\env-reportlab21-python24\lib\site-packages\reportlab\platypus\doctemplate.py",
line 740, in build
self.handle_flowable(flowables)
File
"F:\work\xhtml2pdf-30\env-reportlab21-python24\lib\site-packages\reportlab\platypus\doctemplate.py",
line 671, in handle_flowable
raise LayoutError(ident)
LayoutError: Flowable <PmlTable at 21380632 19 rows x 3 cols> with
cell(0,0) containing
u'<PmlParagraph at 0x1370440>\xa0Problem identified' too large on page 4
-----------------8<---------------[cut here]
The only work around I found is to wrap the content of the table call
with KeepInFrame() so that e.g. the content shrinks to fit. This is not
a very good solution.
Are there other ways to work around this problem? Is splitting of table
cells planned?
Cheers
Dirk
More information about the reportlab-users
mailing list