Categories > OpenTBS with DOCX >

Appending several .docx files

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: emiliano
Date: 2015-07-18
Time: 10:01

Appending several .docx files

I'm just investigating if TBS+Open TBS could be the most appropriate tools for the application I would like to develop:
- the main template (.docx including text, tables, formatting and images) will resides on the server together with other small pre-arranged possible sections (other .docx including text, formatting and images)
- client side the user will input data to be transferred to the templete and will select sections to be appended to the main template (in a specific main template section)
- Once data has been collected, server-side script(PHP) will be used to generate the final Word documentn (.docx)

Is it a scenario that can be managed with TBS+Open TBS? Do you see any pbm?

Thanks a lot for your feedback
By: Skrol29
Date: 2015-07-19
Time: 00:29

Re: Appending several .docx files

Hi Emiliano,

« OpenTBS cannot combine two DocX for now. This is a complicated operation because it implies to retrieve all styles, charts, images, objects from the Docx to insert ; and to place them correctly inside the target DocX. »
See : The problem of merging or combining two DOCX is discussed here :

The better solution is to have a single DOCX with all the possible sections. And then you use the TBS conditional display features to delete the unwanted sections.