[reportlab-users] Multipage tables

Juan Efren Castillo juanefren at gmail.com
Thu Sep 30 18:48:44 EDT 2010


Thanks for your response, I am doing this way:

canvasTable = Table(data, colWidths=tuple(widths), rowHeights=None)
w,h = canvasTable.wrapOn(p,3*72,2*72)
canvasTable.drawOn(p, t.x, page_size[1]-t.y-h, 0)

So what I understand is to do a wrap for each page ?

On Thu, Sep 30, 2010 at 6:58 AM, Robin Becker <robin at reportlab.com> wrote:


> On 30/09/2010 02:29, Juan Efren Castillo wrote:

>

>> I have a dynamically generated table how ever when the number of rows is

>> big, they just got printed outside my canvas, how can I print these rows

>> in

>> other page ?

>> Thanks in advance. :)

>>

> .......

> you don't say exactly how you're drawing the table. Since Tables are

> Flowables the doctemplate classes handle them properly. If you're trying to

> draw them directly onto a canvas then you need to emulate the way that the

> doctemplate does it when the flowables are added to a frame.

>

> table.wrap(availableWidth,availableHeight) --> requiredWidth,

> requiredHeight

>

> table.split(availableWidth,availableHeight) --> list of flowables, the

> first of which is supposed to fit into the available space.

>

>

> --

> Robin Becker

>




--
Juan Efrén Castillo Encinas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100930/50157270/attachment.htm>


More information about the reportlab-users mailing list