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

Robin Becker reportlab-users@reportlab.com
Thu, 13 Feb 2003 03:43:32 +0000


In article <D1CA690A3AA4D142ABC0C5C0C56065D7888F7D@app00008.corp.longvie
w.ca>, Sunita Ngui-Yen <snguiyen@longview.com> writes


So far as I know we have never actually implemented by column splitting,
conceptually it is doable, but makes things very complicated.

>    hi, 
>     
>    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.
>     
>    I set up the table thus:
>    t = Table(data, None, None, None, None, 0, 1, 1)
>    where data is my huge amount of data to put into the table.
>     
>    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.
>     
>    But when I compile, I get a LayoutError exception about something 
>    being too large on page 2.
>     
>    I even added a call to 'self.allowSplitting = 1' in the test0 
>    function.
>    But I still get the error.
>     
>    Is it possible to split tables over multiple pages in ReportLab, or 
>    only paragraphs?
>    And if so, how do you accomplish this?
>     
>    Thanks,
>    Sun

-- 
Robin Becker