Categories > OpenTBS with DOCX >

Blockname in OpenTBS

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Horst Günther
Date: 2013-11-07
Time: 12:44

Blockname in OpenTBS

Hi Skrol,

first of all: Many thanks for your allways quick responces to my sometimes stupid questions.

Here ist the next one:

I want to fill a table in a docx-template. I havent found, what name I have to use in the MergeBlock-Statement.

Here is my table in the docx.

Ausleihdatum    Schloss    Schlüssel
[s.ausgeliehen_am]
[s.ausgeliehen_am;ope=mergecell]    [s.schloss_bez;block=tbs:row]    [s.schluessel_nr]

When I run my skript, exactly this is shown in the output.

Many thanks for help.

Horst

By: Skrol29
Date: 2013-11-07
Time: 16:44

Re: Blockname in OpenTBS

Hi Horst,

You PHP code for merging the table should be like this:

$TBS->MergeBlock('s', $data);

or
$TBS->MergeBlock('s', $db_connection, $sql);

If it doesn't work, it may be because the XML is broken. Try to cut and re-past without formating each TBS tag.
By: Horst Günther
Date: 2013-11-07
Time: 18:40

Re: Blockname in OpenTBS

Hi Skrol.

it works! And it is so simple.

Once more: Many thanks.

Its a wonderfull piece of software

Horst