[reportlab-users] problem with tables

kevin Thackray reportlab-users@reportlab.com
Fri, 27 Feb 2004 12:06:16 +0100


lo,

I am a new in the repportlab pdfgen, and i have a probleme with table :

data = [['1', '2'],
            ['3', '4']]
t = Table(data, 5*[0.4*inch], 4*[0.4*inch])

Raise an exection :
    t = Table(data, 5*[0.4*inch], 4*[0.4*inch])
  File "/usr/lib/python2.3/site-packages/reportlab/platypus/tables.py", 
line 150, in __init__
    raise ValueError, "%s data error - %d columns in data but %d in 
grid" % (self.identity(),ncols, len(colWidths))
  File "/usr/lib/python2.3/site-packages/reportlab/platypus/tables.py", 
line 192, in identity
    cv = self._cellvalues
AttributeError: Table instance has no attribute '_cellvalues'

I have been following exemples of the user guide but i missed something!?
If anyone as any ids, i would be greatfull!!

Regards,

kevin Thackray