Page 1 of 1

Puplulate .doc file from MS Word template and MySql database

Posted: Fri Sep 30, 2011 7:07 am
by guptashivam1987
I have a MS Word Template. I want to create a MS word file with the help of that template and want to populate it with data from MySql database. Using PHP

It is very urgent, it is stopping my whole project development process.
Please suggest me ,

You can reach me at developers4php@gmail.com

Re: Puplulate .doc file from MS Word template and MySql data

Posted: Mon Oct 03, 2011 8:42 pm
by yacahuma
try using and RTF file instead of word. If you have the choice. edit the rtf and place somehitng like


my name is {VAR_PERSON_FULLNAME}

Then in you code open the rtf , do a search and replace for your variables, and write it again.