Inserting form details into MS Word Document

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
andrewdavey
New php-forum User
New php-forum User
Posts: 16
Joined: Wed Feb 12, 2003 5:27 am
Location: Cornwall, England

Wed Apr 09, 2003 2:47 am

How about creating a word document that has place holders where you want actual data to go? You can them open this file in PHP and replace the place holders with values from the form.

Skeletor
New php-forum User
New php-forum User
Posts: 147
Joined: Tue Nov 19, 2002 7:47 am
Location: US, Ohio
Contact:

Wed Apr 09, 2003 6:03 am

Exactly. You could just have php use the template and fill it in with your new data, then save it as another name.

There may be fancy functions to help you with this. I know there is when writting to a PDF or FDF file.

I know you can do this with Excel, so chances are you can do it with word: You could have php create a word object in your browser window if you choose to print it, and just display the newly created word object to your browser window for printing, or save it and email the saved file.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests