Jump to content

Edit Word


hmsilveira

Recommended Posts

Hi all,

 

I don't know if it is possible but i need to edit one word document, write the name of the customer in it, but at the right place and print it from a php form.

 

The user write in that php form the customer id and if he exists, the system should modify the word template and print it. Do you think this is possible and if so how can i do that?

 

Thanks in advance.

 

Hugo

Link to comment
Share on other sites

I would say that PDF is a more suited format. If you decide to go for that, you can use the TCPDF class to generate them.

 

If it has to be Word, I know there is some way to interface with an installed version of it on a Windows computer through COM objects. A simple Google search yields multiple classes that do this. I never used any of them myself, though.

Link to comment
Share on other sites

the problem is that i have to edit the document (word or pdf or anything else - is just a document with a picture and some text), write the customer name in a specific location and the print it. My problem is i don't know how to edit and write in the document. It seems like a mail merge but just for one customer at a time.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.