[reportlab-users] Table content consist of single character
timr at probo.com
Mon Aug 22 16:53:07 EDT 2011
Asif Jamadar wrote:
> fields = ('company_name')
That is not a one-element tuple. That is a string. This is one of the
(relatively few) warts in Python syntax. You want this:
fields = ('company_name',)
> charges_table = Table([fields] + charges)
> The above code giving the output as follows
Right. The table content is expected to be an iterable of iterables.
Yours happens to be that, but the inner iterables are strings (which
iterate one character at a time) instead of tuples containing a string.
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users