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
Puplulate .doc file from MS Word template and MySql database
Moderator: General Moderators
-
guptashivam1987
- Forum Newbie
- Posts: 1
- Joined: Fri Sep 30, 2011 6:50 am
Re: Puplulate .doc file from MS Word template and MySql data
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.
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.