On 04 Jun 17:38, Albert Cervera i Areny wrote:
> 2015-06-04 16:11 GMT+02:00  <[email protected]>:
> > Hi,
> >
> > i am trying to add a company logo to the Reports for example in invoices.
> > I am using the spanish Module company_logo and add the image to the company
> > settings in register 'Report' where you can also set the header and footer.
> > but on the reports the picture will not be displayed.
> > Does anybody use this Module or is there a other way to add logos in
> > reports?
> 
> We use this module but we use it together with the jasper_reports [1]
> engine. With it, it is relatively easy to use such image in headers.
> Can't tell how to do that with relatorio.

Create a frame;
Set as title: image: bytestream, mimetype

bytestream can be an other relatorio report or char, a string or file-like
object (BytesIO). So it can be a Binary field of Tryton.
And you can optionaly add two more attributes for the width and the height.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to