[reportlab-users] Difference between Table and LongTable

Félix Labrecque felixl at densi.com
Wed Aug 3 13:06:45 EDT 2011


Ok Robin but my test code data will fit on 1 page. Should LongTable and
Table wrap function return the same
values when the data fits on 1 table ?

On 8/3/2011 12:51 PM, Robin Becker wrote:

> On 03/08/2011 17:02, Félix Labrecque wrote:

>> I have recently upgraded from the open source reportlab 2.4 to

>> version 2.5

>>

> .............

>> correct my code or find the bug in reportlab and correct it.

>>

>> If seems that longTableOptimize force the tables.py/_calc() function

>> to only use

>> 1 line, instead of 6, because when I display the pdf, I can only see

>> 1 line with

>> longTableOptimize set to on.

>>

> .......

> I'll take a look at the code tomorrow, but the original intent of

> LongTable was to avoid repeatedly scanning the whole table to

> determine widths/heights when the table splits repeatedly. The idea is

> to use the widths from the first page to determine the column widths

> for the whole table; it won't work well if the first page is not

> representative of the whole table.





More information about the reportlab-users mailing list