I'm creating an online exam website. When a student passes a test, I'd like to have their information entered automatically into a Word file. I don't think this is possible, but I could be wrong.
Is it possible to use php to pass variables to MS Word?
This might help:
http://web.informbank.com/articles/techn...
Reply:Probably the easiest way for you to do this from a php-based site is to save the word document as rich text format (RTF) and then use a regular expression to substitute the name in. If the user has word installed on their PC and the browser downloads an RTF document the document will open in word and then the user can save it in .doc format, as long as you set the mime-type correctly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment