By: christophe
Date: 2013-07-10
Time: 12:38
|
OpenTBS - Sub-block and rowHello,
I'm trying to generate a docx with openTBS but i'm running into problem with sub-block my docx template is containing something like:
My php code:
But at generation, i've an error message that the word document is not correctly formed (error from word itself) Did you have any idea? Christophe |
|||
By: Skrol29
Date: 2013-07-10
Time: 17:00
|
Re: OpenTBS - Sub-block and rowThe first thing I can see is that TBS parameters are case sensitive.
So the field [ASB.TEAM;BLOCK=TBS:PAGE;SUB1=MATCHES] won't work as you expect. |
|||
By: christophe
Date: 2013-07-10
Time: 17:27
|
Re: OpenTBS - Sub-block and rowYes, sorry, the title as defined in the top is formated in word as uppercase.
Without the word array everything is ok, when a add a simple (even empty ) array, i've errors. Christophe |
|||
By: Skrol29
Date: 2013-07-11
Time: 01:07
|
Re: OpenTBS - Sub-block and rowHi,
I cannot see what is wrong. Did you tried without download, only generating the file ? Did you tried the debug mode ? |
|||
By: christophe
Date: 2013-07-11
Time: 09:23
|
Re: OpenTBS - Sub-block and rowYes tried with the xml generation, don't have any error at generation.
Seems to be a bug in OpenTBS with subblock and array. without the array and with a tbs:p everything is ok, but when i change it to tbs:row then i've the problem. C |
|||
By: Skrol29
Date: 2013-07-12
Time: 00:02
|
Re: OpenTBS - Sub-block and rowI need to see the template, is it possible for you to send it ?
The table may not be as you expect. |
|||
By: Skrol29
Date: 2013-07-13
Time: 00:51
|
Re: OpenTBS - Sub-block and rowHi Christophe,
Thank you very much for the file you sent to me. There was a bug in OpenTBS but not about the sub-template. It was about parameter "block=tbs:page" when the last paragraph of the document has no text (strange isn't it ?). The bug is now fixed in the last beta which can be downloaded here: http://www.tinybutstrong.com/dl.php?f=tbs_plugin_opentbs_beta.zip&s=2 Regards, |
|||
By: christophe
Date: 2013-07-15
Time: 09:39
|
Re: OpenTBS - Sub-block and rowThanks skrol29,
Did you have the content of the beta (changelog) to see the impact for production? Christophe |
|||
By: Skrol29
Date: 2013-07-17
Time: 14:38
|
Re: OpenTBS - Sub-block and rowHi,
The change-log in described in the documentation given with the package of the beta version. Change-log for OpenTBS 1.8.1-beta, 2013-07-14 * new feature: the loaded template can be a PHP file handle. * enhancement: Ms Excel Sheets are now saved with explicit references for rows and cells, so merged templates are viewable with Libre Office and other third viewers. * enhancement: keywords for changing cell types is the same for LibreOffice and Ms Office. * fixed bug: A DOCX file could be corrupted when using "block=tbs:page" and the last paragraph of the document has no text. * based on TbsZip 2.14 |