[reportlab-users] how do you include an image within a frame with other flowables?
David Chen
reportlab-users@reportlab.com
Tue, 12 Nov 2002 21:06:11 -0800
I'm trying to generate a report with fixed images (GIF) along with
regions of flowable text and charts. The one example in
../reportlab/test/test_graphic_images.py uses a "Drawing" as a backdrop
to render an image. However, if you use platypus with doctemplates,
frames and flowables, I can't figure out how to apply images within this
world.
I tried doing:
img = Image(0, 0, 1.5*inch, 0.5*inch, "test.gif")
imageFrame.addFromList(img,c)
but I get the error:
File "C:\reportlab\test\rpt_test.py, line XX, in ?
imageFrame.addFromList(img,c)
File "_p:reportlab\platypus\frames.py", line XXX, in addFromList
AttributeError: Image instance has no attribute '__len__'
Can anyone point me to a reference to follow?
Thanks,
David