[reportlab-users] Table content consist of single character
Asif Jamadar
asif.jamadar at rezayat.net
Mon Aug 15 06:15:19 EDT 2011
fields = ('company_name')
charges = [(c['company_name'])
for c in ReportModel.objects.values('company_name').distinct()]
charges_table = Table([fields] + charges)
charges_table.setStyle(TableStyle([('BACKGROUND', (0, 0), (-1, 0), colors.gray),
('FONTSIZE', (0, 0), (-1, 0), 6),
('GRID', (0, 0), (-1, -1), 2, colors.gray),
('FONTSIZE', (0, 0), (-1, -1), 7)]))
charges_table.hAlign = 'LEFT'
document.append(charges_table)
The above code giving the output as follows
C
r
n
Where as it should display
Company Name
robon
nasto
Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20110815/442b434f/attachment.htm>
More information about the reportlab-users
mailing list