[reportlab-users] Splitting tables with repeated ROWBACKGROUNDS

Axel P. Kielhorn python-rl at axelkielhorn.de
Sun Mar 22 05:05:13 EDT 2020



> Am 22.03.2020 um 08:01 schrieb Axel P. Kielhorn <python-rl at axelkielhorn.de>:
> 
> 
> In the meantime I implemented my suggestion from yesterday and added an empty column with a span.
> It works in the test case.

And I have to correct myself:

I want to add the span to the Table, not the TableStyle.

bt = Table(bdata, repeatRows=2, colWidths=(None, None, 0))
bt.setStyle(TableStyleLD)

for i in range(0, len(Data), 2):
    bt.setStyle([('SPAN', (-1, i), (-1, i+1))])

Greetings
Axel


More information about the reportlab-users mailing list