[reportlab-users] Report lab tables

Johan Paul Glutting reportlab-users@reportlab.com
Mon, 04 Oct 2004 16:55:56 +0200


Try giving it width and height arguments:

 logo = Image('logo.jpg', width=100, height=50) [or whatever]

I have had to adjust width and height by hand for the canvas drawImage 
function to get it right.

Cheers,

JP

En/na Tim Smith ha escrit:

> if i try use that  get this error
> AttributeError: ImageReader instance has no attribute '_width'
>
> here is a snip of my code
>
> logo = Image('logo.jpg')
> Invoice = []
> Invoice.append(Paragraph('Tax Invoice', styles['Heading1']))
> Invoice.append(logo)
>
>