Tables with sub-totals

Mike Driscoll <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAO4gEAtc4f2AdARaFLFuND=Dpo05YQ4rv3xw4+517aftJtSjRw@mail.gmail.com>
Hi,

I have a project where I'll receive an unknown amount of data that needs to
be put into a table. When the table reaches the end of the page, it needs
to add a sub-total as the last row before splitting. This will happen on
each subsequent page until we reach the last page which should have the
grand total of all previous pages. How does one tell Reportlab to add a
subtotal row before splitting?

I know how to get a table to split, just not the sub-total part.

I am considering calculating the number of rows that can fit on a page and
inserting the sub-total into the data list that I pass the Table object,
but I was hoping there was a better way.

Thanks,
Mike Driscoll

P.S. I posted this to the Google Group for reportlab, but it doesn't appear
to get propagated to the list. Here is a link to that post:
https://groups.google.com/forum/#!topic/reportlab-users/GSnvjo0Iucs
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.