[reportlab-users] Moving to next frame in Platypus
jpywtora at calpoly.edu
Mon Jun 27 19:09:23 EDT 2005
> Hi everyone,
> I have started using Platypus and reportlab extensively over the past week.
> I have found platypus to be very powerful yet simple and intuitive (in most
> However, my problem arised when I had multiple frames in one page and I was
> trying to place paragraphs, tables, etc. into these frames. I couldn't
> figure out how to move the "cursor", so to speak, so I can place items on
> the next frame. Reading up on the Reportlab RML, they use the <nextFrame/>
> tag. I expected there should be a similar platypus function nextFrame() but
> I couldn't find it.
> For example :
> # define frames - for frames in page
> frameHeader = Frame(x1=0*inch, y1=7.5*inch, width=11*inch, height=1*inch)
> frameChart1 = Frame(x1=0*inch, y1=5*inch, width=5.5*inch, height=5*inch)
> # define pageTemplates - for page in document
> mainPage = PageTemplate(frames=frameHeader)
It looks like you missed frameChart1 in the frames parameter. Ex.
frames=[frameHeader, frameChart1] I believe.
> # define BasicDocTemplate - for document
> doc = BaseDocTemplate('report_1.pdf', pagesize=landscape(letter),
BaseDocTemplate should really be your subclass/superclass versus
> story.append(FrameBreak()) # this is the point where I want it to move to
> next frame
I think FrameBreak() is the correct flowable.
Frustrating Hanging Crashing
Blue Screen of Death
More information about the reportlab-users