[reportlab-users] hAlign
John Pywtorak
jpywtora at calpoly.edu
Fri Aug 26 13:30:34 EDT 2005
Nicholas Wieland wrote:
> I'm reading the source of the Table class, trying to figure out how to align my tables during instantiation, but can't find anything else than hAlign, and from what I understand it's usable only on a Table instance.
> Correct ?
> It would be much more useful if __init__ had an alignment argument, but maybe I'm missing something. How can I align tables on instantiation ?
>
> TIA,
> ngw
>
>
I will try to answer using an observation I noticed when working with
platypus. With platypus the story, or collection of flowables control
the vertical alignment, so by using spacer flowables, paragraphs, empty
tables you build the page top to bottom. If you need exact placement
then you may have to do something with on_page handlers or extend the
table flowable, or a frame that has that table only. Keep in mind you
can have a table within a table, thus use an outside table to control
vertical alignment/position, etc for the inner table.
For our use here we cared about order of placement on the pdf
vertically. I also used the table within table technique. Hope this helps
Johnny P
--
Windows
Start Here
Frustrating Hanging Crashing
Blue Screen of Death
Reboot
More information about the reportlab-users
mailing list