[reportlab-users] Table margin

Arkadi Colson arkadi at smartbit.be
Fri May 27 05:42:02 EDT 2011


It seems rule 3 also resets the Indent value for mytable. Is it possible
to set the Indent value for each flowable individually?

story.append(Indenter(left=-2.5))
story.append(mytable)
story.append(Indenter(left=2.5))


On 05/27/2011 10:47 AM, Robin Becker wrote:

> On 27/05/2011 09:21, Arkadi Colson wrote:

>> Hi

>>

>> Is it possible to set the left margin to a table? When using the

>> hAlign='LEFT'

>> property, the table has a small left-margin. I would like to set it

>> to zero.

>> Anybody knows how to do it?

>>

>> Thanks!

>>

> There's an Indenter flowable object which you can put in the story.

> It's in doctemplate so you can do the following

>

> from reportlab.platypus.doctemplate import Indenter

>

> story.append(Indenter(left=12))

> story.append(mytable)

> story.append(Indenter(left=-12))

>


--
Smartbit bvba
Hoogstraat 13
B-3670 Meeuwen
T: +32 11 64 08 80
F: +32 89 46 81 10
W: http://www.smartbit.be
E: arkadi at smartbit.be



More information about the reportlab-users mailing list