word processed documents and database...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rob1
Forum Newbie
Posts: 12
Joined: Mon Jul 28, 2008 10:05 am

word processed documents and database...

Post by rob1 »

I have a simple web app that records client details and i have a set of word processed documents (created in word).

I was wondering if there was anyway of combining this information in some kind of way, ideally I would like to have the list of documents within my web app and use these documents as templates.

so if i wanted to send a letter to a client it would automatically pull through their address and reason for contacting them etc (and ability to use any other DB stored piece of information).

documents dont need to necessarily stored within ms word format, but I would need to be able to extract the information and keep the formatting

thanks,

Rob.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: word processed documents and database...

Post by Ollie Saunders »

To be honest it's probably easier to get Word to look-up the information from the database (via PHP) than it is to create data driven word documents with PHP. You'll have to dig around the Microsoft documentation for your version(s) of Word to see how this is done. My guess is that the worst case scenario (I think) is that you'll have to write some VBA and that newer versions are likely to have simpler ways of doing it.
Post Reply