[reportlab-users] Faced with error after upgrade from ReportLab 1.2 upto ReportLab 2.4 - error in platypus

Yuriy Asyutin yasyutin at gmail.com
Thu Aug 12 07:39:45 EDT 2010


I have code that generates into PDF table data. After upgrade from ReportLab
1.2 to ReportLab 2.4 I've got such error:

site-packages/reportlab/platypus/tables.py", line 539, in _calc_height
t = (s.leading or 1.2*s.fontSize)*len(v)
AttributeError: CellStyle1 instance has no attribute 'fontSize'

To avoid such error I've found workaround:

In my code that worked fine with v 1.2:

++Table([[Paragraph('', paragraph_style)]])

I'm not sure if there is an error in platypus or Table([['']]) is no more valid.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100812/3751ae0f/attachment.htm>

More information about the reportlab-users mailing list