[reportlab-users] top position of table.

Tomasz Świderski contact at tomaszswiderski.com
Fri Feb 19 05:22:00 EST 2010


Juan Efren Castillo wrote:

> I am creating tables like this:

>

> canvasTable = Table(my_data)

> w,h = canvasTable.wrapOn(p,3*72,2*72)

> canvasTable.drawOn(p, 100, 100, 0)

>

> And draws a table where the left bottom point is (100, 100), How can I

> draw a table where the left top point is (100, 100) ?

>

> --

> Juan Efrén Castillo Encinas

>

> ------------------------------------------------------------------------

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>

Try:

canvasTable = Table(my_data)
w,h = canvasTable.wrapOn(p,3*72,2*72)
canvasTable.drawOn(p, 100, 100 - h, 0)


It should help, you simply lower initial y point by height of your table.

TOmasz


More information about the reportlab-users mailing list