[reportlab-users] colwidths question

Jessup, David DJESSUP at usnews.com
Thu Feb 5 21:11:36 EST 2009


What I tend to do is perform the following import:


> from reportlab.lib.units import unit


where unit is "inch", "cm", "mm", or "pica". I can then set colWidths =
(inch, 2.5 * inch, inch, inch) in units I can measure with a ruler.

________________________________

From: reportlab-users-bounces at reportlab.com
[mailto:reportlab-users-bounces at reportlab.com] On Behalf Of James Yoo
Sent: Thursday, February 05, 2009 5:58 PM
To: Support list for users of Reportlab software
Subject: [reportlab-users] colwidths question


Hi... me again..

There is something I am not understanding about colWidths...
I'm trying to create a Table with colWidths = (28,10,10,10), those are
the widest character lengths of the strings in my columns...

I'm obviously not understanding about the units for the column widths
because I get a really squished table.

Is there an idiom for setting exact widths for columns that I am
missing?

thanks,
James


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090205/67bdb98f/attachment.html>


More information about the reportlab-users mailing list