[reportlab-users] Alignment in table with flexible data(2)

Robin Becker robin at reportlab.com
Thu May 21 05:31:06 EDT 2015

Sorry Helga,

I did see this, but it has slipped out of mind. I think you are misunderstanding 
the use of the positional parameters here.

On 21/05/2015 10:08, Helga Peters wrote:
> story [ ]

	  t_style += [	('SPAN', (2, len(t_data)), (2, len(t_data)+2)),
						  ('VALIGN',(0,1),(1,1),'TOP')	   ]

this needs adjustment for the actual row positions since you seem to end up with 
only one table. I think the SPAN is OK since you seem to be making a span based 
on the current t_data length, but the VALIGN has fixed rows.

> 	  t_style += [	('ALIGN', (0,2), (1,2), 'LEFT'),
> 						  ('VALIGN',(0,2),(1,2),'TOP')	

here I think both ALIGN and VALIGN need adjustment for position.
Robin Becker

More information about the reportlab-users mailing list