Categories > OpenTBS with ODS >

Altering on ODS Object inside an Odt File

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Farhad Arbabzadah
Date: 2012-12-17
Time: 17:03

Altering on ODS Object inside an Odt File

Hi all,

I am struggling with the following problem. I have an odt template that contains a reference to an .ods object. However, I know the sub-folder as well as the filen ame of the .ods table. But I do not know how to use loadTemplate, such that it loads the .ods file.

The ods file is in the odt archive under:

Object 1/content.xml

I tried something along:

loadTemplate('test.odt#Object 1/content.xml')

Your help is much appreciated!



By: Skrol29
Date: 2012-12-17
Time: 22:49

Re: Altering on ODS Object inside an Odt File

Hi,

When the main ODT is already loaded, you can load a sub-file using:
$TBS->LoadTemplate('#Object 1/content.xml');
After that you can start the merge data in this sub file.

It happens that this subfile is the content of an ODS file. Nevertheless, strictly speaking, it is not an ODS file. An ODS file should be a zip archive with XML subfiles.