Populate word template files with info from the records

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
scarvalh
Posts: 3
Joined: 2016-11-08 13:31

Populate word template files with info from the records

Post by scarvalh » 2017-04-15 07:46

Hi,
I'm trying to build a database that have a table with several corporate word templates

So when I go to a specific record I added a pulldown field where I can choose the word template, and with a added button i can click and open the word template,
.. my may issue ... now if how to fill in the word template with the info from my current record database on open.

Thks

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: Populate word template files with info from the records

Post by R Tammam » 2017-12-17 18:48

Hello scarvalh,

First you will need a php library to write in word file like this
https://github.com/PHPOffice/PHPWord
will need to call a server side script that takes record id and checks which word templete related to this id then open the word file
to write in it and send back a download link to user

Post Reply