[reportlab-users] colwidths question

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


One more thing: If I recall correctly, if you don't specify the
colWidths, they'll shrink to just fitting the displayed content; you
only need to specify the colWidths if your table width would otherwise
not fit on a page.

________________________________

From: reportlab-users-bounces at reportlab.com
[mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Jessup,
David
Sent: Thursday, February 05, 2009 9:12 PM
To: Support list for users of Reportlab software
Subject: Re: [reportlab-users] colwidths question


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/c6276517/attachment.htm>


More information about the reportlab-users mailing list