[reportlab-users] Splitting tables with repeated ROWBACKGROUNDS

Robin Becker robin at reportlab.com
Sat Mar 21 10:01:07 EDT 2020


Hi Axel,

wasn't quite sure what a double row was, but I guess you just mean that the rows are associated with each other in terms 
of background colour.

I think I understand the problem after looking at your example. So logically in your example you want the first two rows 
to be a specific background colour and then have the colour alternate between grey and white. Currently the 
ROWBACKGROUNDS argument is just a list and to accomplish what you seem to want it needs more structure eg a history of 
where in the sequence it is and the rendering needs to know about repeat rows etc etc.

I'll have a think.

On 21/03/2020 10:54, Axel P. Kielhorn wrote:
> Hello!
> 
> I have some data that I want to put into a table, but it doesn’t fit into one row.
> Therefore I split it into two rows and use ROWBACKGROUNDS to group the rows.
> 
.........

-- 
Robin Becker


More information about the reportlab-users mailing list