[reportlab-users] grid number of row errors

Timothy Smith timothy at open-networks.net
Mon May 2 06:31:00 EDT 2005


Robin Becker wrote:

> Timothy Smith wrote:
>
>> maybe i'm blind but i get this error
>>
>>
>> raise ValueError, "%s data error - %d columns in data but %d in grid" %
>>
>> with this data, but it just can't be right? a table is just an list 
>> of lists, which is what this is?
>>
> .... styles were specified how?
>
>
t = Table(Data, None, None)
    ReportStyle = TableStyle([('ALIGN',(0,0), (-1,-1), 'CENTRE'),
                            ('LEFTPADDING',(0,0),(-1,-1),4),
                            ('RIGHTPADDING',(0,0),(-1,-1),4),
                            ('FONT',(0,0),(-1,-1),'Times-Roman',8)])
    t.setStyle(ReportStyle)
    Report.append(t)   
    doc.build(Report)

it's weird it's like if it goes over a certain length it errors.





More information about the reportlab-users mailing list