By: gert
Date: 2013-06-20
Time: 17:29
|
Adding a table to docx
Hi,
I'm trying to add a table to an existing docx document using TBS and openTBS. For that I have designed a table in MS Word and copied the related xml code (code starting with <w:tbl> and ending with </w:tbl>) to a PHP variable. In the template docx I use [xtra.tbl;strconv=no] and the MergeField operation. The xml code is correctly inserted but MS Word complains 'unreadable content' and doesn't open the document.
What's wrong in this approach? Maybe that somebody has already done such table adding and can give me some help.
The reason for adding a complete table is, that depending on content a table will be added or not, and if, the table layout is depending on dynamic parameters (column width).
Any hint is welcome!
gert
|