[reportlab-users] Newbie Question on Landscape Tables...
jared.carlson23 at gmail.com
Mon Jan 23 16:13:55 EST 2012
So I'm working with report lab and for the most part getting things to work
well, but landscape with a table is killing me.
So I create a couple of frames and define a _landscape function, which just
rotates the canvas... I should add that "BuildTable( ... )" builds a
pframe = Frame(1*cm,1*cm,14*cm,22.7*cm)
ptemplate = PageTemplate('myportrait',[pframe] )
lframe = Frame(1*cm,1*cm,22.7*cm,14*cm)
ltemplate = PageTemplate('mylandscape',[lframe],onPage=_landscape )
And then I insert a:
els.append( BuildTable(csvfile ) )
The table DOES cover multiple pages, but what I see is the first page is
still portrait, and then the second page is landscape, I inserted a page
break thinking that maybe the table was being started on a new page... so...
els.append( BuildTable(csvfile) )
But other than a blank page before my table... nothing else and so I'm
wondering why my table doesn't rotate, and only part of it does...
Can anyone share some insight?? Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users