[reportlab-users] Very very long document

andy at reportlab.com andy at reportlab.com
Fri Mar 11 11:03:03 EST 2005


> thanks for your fast answer. Actually, I'm using one BIG table
> which contains all the rows.

> How could I optimize the rendering?

Quick way: in reportlab/rl_config.py set
   longTableOptimize =         1

There will be some cases where it can no longer work out
the optimal width for all columns - it will only take account
of a few rows when doing column sizes.  And if you specify
the colWidths then you should definitely do this.

The other trick is to break apart tables into one
table-let for each row or small group of rows.  People
often go this way when they need group headers
and footers.  But if the first one works, stick with
it.

- Andy



More information about the reportlab-users mailing list