[reportlab-users] Difference between Table and LongTable

Henning von Bargen H.vonBargen at t-p.com
Thu Aug 4 08:34:41 EDT 2011


The original intent was a performance optimization for long tables
(spanning more than a few pages).

The original code would calculate the whole table just to find out
if the table has to be split on the current page or not.

The optimization is that the calculation needs only to be done for the
first rows. e.g. the height of row 45-9999 can be avoided once it is
clear
that only the first 44 rows will fit on the current page.

I think a reasonable solution could be to pass the optimization flag
as an optional argument to the wrap method.
Then inside the method, use the given argument or the config setting
if the arg is not specified (None).

Henning


More information about the reportlab-users mailing list