[reportlab-users] Problem with Tables flowing

pieter claassen reportlab-users@reportlab.com
18 Sep 2003 09:56:47 +0100


Hello,

I am having trouble getting my tables to flow properly over multiple
pages in Platypus. Here are the symptoms:
1. Large tables more than 1 page long seem to hang the doc.build
process. The columns do have a fixed width, the length is just large and
it seems to happen when I try to put more than about 50 rows in a table.
2. Tables seem to start on whichever page they feel like. Sometimes,
tables would start on page 1 and other times on page 2. How do I control
this?
3. I start my document with

doc=SimpleDocTemplate(filename=self.outputfile,allowSplitting=1)

Tables are created with

t=Table(self.data,colWidths=[420,60],repeatCols=1)
t.setStyle(TableStyle([('FONT',[0,0],[-1,-1],'Helvetica'),
    			   ('FONTSIZE',[0,0],[-1,0],12),
			   ('TEXTCOLOR',[0,0],[-1,0],colors.white),
			   ('BACKGROUND',[0,0],[-1,0],colors.darkblue),
			   ('GRID',[0,0],[-1,-1],1,colors.green)]))


and I think it used to work but now I don't get an error, it just hangs.

Any help will be appreciated.
Thanks,
Pieter
-- 
Pieter Claassen
CounterSnipe Technologies
www.countersnipe.com


Highview House
Charles Square
Bracknell
Berskhire
RG12 1DF
United Kingdom


Tel: +44(0) 1344 390 530
Fax: +44(0) 1344 390 700
Mobile: +44 (0) 776 6656 924
email: pieter@countersnipe.com