Categories > OpenTBS with ODP >

Dynamically adding graphic to Impress presentation

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Cezar
Date: 2010-06-30
Time: 15:33

Dynamically adding graphic to Impress presentation


First of all - I'm really impressed! :-) With TBS/OpenTBS I can generate 20-30 pages long presentations in less then 2 seconds (including database access). Just for your information: I've talk with my colegue who is Microsoft fan and he was also impressed - he said that TBS is easier and much faster than his Access/PowerPoint duet :-)

And my question is: i'd like to add graphics to each presentation's page. I've played a bit with [b.pic;ope=addpic;from='[val]';att=draw:image#xlink:href] and it works fine (eg: loads properly pic from disk) but then when I try to load output file with OpenOffice complains that "this document is broken, would you like me to fix it?". So what is proper whay of inserting graphics into the presentations? And how can I "inform" OpenOffice (or MS-Office) that I want it to place picture exactly in planned place in the template?

Any ideas welcome! :-)

Cezar

By: Skrol29
Date: 2010-06-30
Time: 22:38

Re: Dynamically adding graphic to Impress presentation

Hi Cezar,

You can precise to your colleague that OpenTBS can merge Docx files, but it is more complicated to build a template because of the  OpenXML format.

I've tried to merge pictures in the ODP template and the merged document is opening correctly with OpenOffice 3.1.1, while OpenOffice 3.2.1 displays the same error as yours. I'm working on that problem.
By: Skrol29
Date: 2010-07-01
Time: 00:20

Re: Dynamically adding graphic to Impress presentation

Hi,

It seems that the "manifest.xml" must be updated when you add medias in the OpenOffice document. Otherwise it makes an error in OO 3.2.
I will update OpenTBS in order to manage this problem automatically.
By: Cezar
Date: 2010-07-01
Time: 09:29

Re: Dynamically adding graphic to Impress presentation

Thank you ! :-) Could you please provide me with diff file for OpenTBS and example ODP file? Thank you in advance! :-)
By: Skrol29
Date: 2010-07-01
Time: 16:15

Re: Dynamically adding graphic to Impress presentation

Hi,

OpenTBS 1.3.1 is available.
It fixes your problem and a minor one about the time of a file when it was replaced or added.

The ODP example now include picture merging.

Enjoy,
By: Cezar
Date: 2010-07-01
Time: 18:16

Re: Dynamically adding graphic to Impress presentation

Well, what can I say?  It works perfectly! :-D Thank you Skrol29! :-)