[reportlab-users] modifying table header on subsequent pages

Robin Becker robin at reportlab.com
Fri Mar 25 05:48:03 EDT 2011


On 24/03/2011 22:53, Jon.Reinsch wrote:

> Using your suggestion, I got:

> File "C:\MiniESI\writebackpagepdf.py", line 26, in draw

> self.content[self.x].draw()

> File "C:\Python27\lib\site-packages\reportlab\platypus\paragraph.py", line 992,

> in draw

> self.drawPara(self.debug)

> File "C:\Python27\lib\site-packages\reportlab\platypus\paragraph.py", line 1293,

> in drawPara

> canvas = self.canv

> AttributeError: Paragraph instance has no attribute 'canv'

>

> I tried adding self.content[self.x].canv = self.canv before the draw call. I

> have no idea if this is correct, but it seems to work. Thanks for an elegant

> solution!

........

My bad I forgot that.

Yes the normal frame add mechanism pushes the canvas onto the flowables when
they are being added.
--
Robin Becker


More information about the reportlab-users mailing list