Re: Alignment in table with flexible data(2)

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.