Categories > OpenTBS with DOCX >

Problem opening file Word

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: julesmim
Date: 2012-02-18
Time: 16:19

Problem opening file Word

Hello,
I'm trying to use a Word docx template. After running my php script, I get a document that Word cannot open.
When I look into the word/document.xml that is in the docx that is produced, I can see that, for each row that I fetched from MySQL database, the OpenTBS plugin has started with a new w:document tag. So in the same document word/document.xml, I have many streams of data included in <w:document> and </w:document> tags. I thought (am I right?) that there should be only one <w:document> tag per file.

I also noticed that not all my records, but only 6 (out of about an hundred) were merged.
Could you help me find what is the problem?
By: Skrol29
Date: 2012-02-19
Time: 20:58

Re: Problem opening file Word

The <w:document> element should not be repeated.
There must be something special in your Word template.
Can you give more detail about the TBS tags in template?