hmsilveira Posted January 5, 2011 Share Posted January 5, 2011 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 Quote Link to comment Share on other sites More sharing options...
Kieran Menor Posted January 5, 2011 Share Posted January 5, 2011 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. Quote Link to comment Share on other sites More sharing options...
hmsilveira Posted January 5, 2011 Author Share Posted January 5, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.