[reportlab-users] Re: including Images

Jorge Magalhães reportlab-users@reportlab.com
Fri, 25 Jul 2003 22:28:26 +0000


Hi,

Why I can't add images  to a Drawing object?

If I try.

d = Drawing(400,200)
img = Image('foto.jpg', width=2*inch, height=2*inch)
d.add(img)
Elements.append(d)

I found this error message:

"Can only add Shape or UserNode to a Group"????

But if I add a chart all work fine.

Jorge Magalhães