[reportlab-users] Large table with totals in page footer

Tony Middleton tony at echtrees.org.uk
Fri Mar 31 06:29:35 EDT 2017

Thank you.  I've now got something working with afterPage and onSplit. 
When I have the code tidied up I'll show it here.

However, I do have a complication.  The documents I create will have a
table of approx 7000 rows over 600 pages.  I need to introduce page
breaks in the table at certain points.  I though there might be a
pagebreak command in TableStyle but there isn't.  I got round this
initially by splitting the table into multiple tables with PageBreak()
between but this messes up my code for page footers.

Is there a way of forcing page break in a single table or do I have to
make my code cope with multiple tables?



On 29/03/17 17:07, Robin Becker wrote:
> On 29/03/2017 14:41, Tony Middleton via reportlab-users wrote:
>> I am trying to create a document with a multipage table.  At the bottom
>> of each page I need a footer which includes some information derived
>> from rows printed on that page.  I am using the Table() class and rows
>> are variable height so I don't know which rows will print on a page.
> I don't think this can be done terribly easily with the existing table
> class; a derived class will be needed, but whether that's from the
> Table or some element class included in the rendered rows is hard to say.
> Logically if you know the height of the extra information then it
> seems reasonable to add something in the split method ie when the
> table splits some ectra information can be detected and arrangements
> made to put that into a specific location.
>> I've looked around and can't find any way to do this.  Any pointers
>> would be greatly appreciated.
>> Regards
>> Tony Middleton
> ..........

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20170331/f59395f1/attachment.html>

More information about the reportlab-users mailing list