[reportlab-users] how to change only one row height in a table

Robin Becker robin at reportlab.com
Fri Sep 13 05:33:53 EDT 2013


You need to set up a rowHeights list in the Table() creation.

So if you have nrows=len(data) do

rowHeights = nrows*[None] or rowHeights = nrows*[myStandardRowHeight]

rowHeights[3] = 5

tbl = Table(data,....rowHeights=rowHeights)


On 12/09/2013 22:35, Mike Driscoll wrote:

> Hi,

>

> I need to change the row height of a single row in a table. So for example,

> say I have a Table object with 5 rows and I want to make the height of the

> 4th row smaller than all the others. How would I do that? I tried changing

> the padding values for that row to no effect. I also tried setting the

> leading value, but that didn't affect it either...not that I really thought

> that one would.

>

> Any hints would be appreciated. Thanks!

>

> -------------------

> Mike Driscoll


--
Robin Becker


More information about the reportlab-users mailing list