Re: Large table with totals in page footer

Tony Middleton via reportlab-users <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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?

Regards

Tony

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
> ..........
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.