Categories > [old] TbsOoo & TinyDoc >

Dinamic Images on .odt

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Diego Bueno
Date: 2007-04-02
Time: 21:07

Dinamic Images on .odt

Hey guys..

   I'm searching a way to put a dinamic image on my .odt template, according whith the action..
   But it doesn't work..

   Anyone has a example using images on your .odt's ??
   I'm using this sentence: [var.image;magnet=img;mtype=m*]..
   And my [var.image] has the value '/tmp/myImage.jpg';
   But.. :(

   How can I write the sentence to make it work ??

Thanks!
By: Olivier
Date: 2007-04-03
Time: 12:19

Re: Dinamic Images on .odt

Hi,

Openoffice documents are not so easiest than HTML, so you coundn't use this syntax

We have to write an extension to the class to support dynamic image.

Olivier
By: Arkaitz Garro
Date: 2009-01-07
Time: 16:45

Re: Dinamic Images on .odt

Hi,

I need some advice to display images into .odt files. Anyone get it works?

Thanks.
By: nathangray
Date: 2009-03-20
Time: 23:01

Re: Dinamic Images on .odt

projectERP, which uses TBSOOo for reports, has this.

-- This is not a drop-in solution, this is a guideline --

Have a look at the Image_Replace() function in:
http://perp.svn.sourceforge.net/viewvc/perp/trunk/perp_api/inc/report/ooo.inc.php

Call it like this:
$this->OOo->Image_Replace('content.xml', $data['images']);

Images in your ODT must be named, and make sure they're embedded, not linked.  You're limited to images local to the php script.