[reportlab-users] Table and document widths

Robin Becker reportlab-users@reportlab.com
Tue, 6 Jan 2004 13:12:32 +0000


In article <20040106123427.GA28417@gbdirect.co.uk>, Will Newton
<will@gbdirect.co.uk> writes
>I've been building a report with reportlab, and so far it is going
>pretty well. However, I have come across a little inconsistency in the
>formatting of my report, and wondered if anyone on this list could shed
>any light on the problem. 
>
>I've got several tables and a number of paragraphs in my document. The
>tables have their column widths set like this:
>
>  Table(table_data, 2*[doc.width/2])
>
>(or some other multiple other than 2). The tables also have boxes round
>their borders. The tables end up being slightly wider than my paragraphs
>or other non-boxed tables and look quite inconsistent. Not specifying
>table widths results in the correct (to my eye) effect, i.e. the content
>of the table is shrunk slightly to accomodate the box. Is there a way to
>specify column widths without getting this issue?
>
..... can you create a simple example showing the effect and post it to
the list or direct to me.
-- 
Robin Becker