[reportlab-users] simple tables example

Timothy Smith timothy at open-networks.net
Sun Dec 19 00:17:11 EST 2004


i'm trying to follow the tables example in the user guide, but it's 
very, very terse. the table.py example of the other hand is way too indepth

why do i get this error?


   doc = SimpleDocTemplate('tmp.pdf')
   
    WeeklyReport = ['test','test','test']
   
     
    t = Table(WeeklyReport)
   
    doc.build(t)
 
File 
"/usr/local/lib/python2.3/site-packages/reportlab/platypus/tables.py", 
line 156, in __init__
    raise ValueError, "%s not enough data points in row %d!" % 
(self.identity(),i)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/platypus/tables.py", 
line 192, in identity
    cv = self._cellvalues
AttributeError: Table instance has no attribute '_cellvalues'


More information about the reportlab-users mailing list