[reportlab-users] Splitting tables down\across multiple pages

Sunita Ngui-Yen reportlab-users@reportlab.com
Wed, 12 Feb 2003 19:36:17 -0500


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2D2F7.EC0E74C4
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi,=20
=20
I am working with the sample code from test_platypus_tables.py.
I have added a lot more data cells when the table is created in order to =
test splitting the table over mulitple pages.
=20
I set up the table thus:
t =3D Table(data, None, None, None, None, 0, 1, 1)
where data is my huge amount of data to put into the table.
=20
>From the documentation, I thought this would split by Column first if it =
was too wide and then by page.
I also thought it would repeat the header on each page as well.
=20
But when I compile, I get a LayoutError exception about something being =
too large on page 2.
=20
I even added a call to 'self.allowSplitting =3D 1' in the test0 =
function.
But I still get the error.
=20
Is it possible to split tables over multiple pages in ReportLab, or only =
paragraphs?
And if so, how do you accomplish this?
=20
Thanks,
Sun

------_=_NextPart_001_01C2D2F7.EC0E74C4
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.50.4923.2500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>hi,=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>I am =
working with=20
the sample code from test_platypus_tables.py.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>I have =
added a lot=20
more data cells when the table is created in order to test splitting the =
table=20
over mulitple pages.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>I set =
up the table=20
thus:</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>t =3D =
Table(data,=20
None, None, None, None, 0, 1, 1)</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>where =
data is my=20
huge amount of data to put into the table.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>From =
the=20
documentation, I thought this would split by Column first if it was too =
wide and=20
then by page.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>I also =
thought it=20
would repeat the header on each page as well.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>But =
when I compile,=20
I get a LayoutError exception about something being too large on page=20
2.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>I even =
added a call=20
to '</FONT></SPAN><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2>self.allowSplitting =3D 1' in the test0 =
function.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>But I =
still get the=20
error.</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>Is it =
possible=20
to&nbsp;split tables over multiple pages in ReportLab, or only=20
paragraphs?</FONT></SPAN><SPAN class=3D714042600-13022003><FONT =
face=3DArial=20
size=3D2></FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial size=3D2>And if =
so, how do=20
you accomplish this?</FONT></SPAN></DIV>
<DIV><SPAN class=3D714042600-13022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D714042600-13022003>Thanks,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D714042600-13022003>Sun</SPAN></FONT></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C2D2F7.EC0E74C4--