Attached is my file. I would like that when the user clicks submit a word file is generated with the information. How could I do this?
Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 06 June 2014 - 01:50 PM
with html you can't.
You can however do it using PHP, Python, C# or some other programming language on the server backend (There are plenty of libraries around that lets you generate word and excel documents (primary in the newer .docx and .xlsx formats)
PHP (alternative library): http://www.phpdocx.com/documentation/tutorial
Edited by SimonForsman, 07 June 2014 - 10:52 AM.
Posted 07 June 2014 - 09:36 AM
Also, "a word file" could have a lot of formats (a single txt file can be opened in Word), but if you're trying to create a .doc file it might be a hard task. The .doc file format is not fully documented, so maybe you can create a .odt file (it's a standard well defined file format for documents) that Word recognizes and opens without problems. You'll probably found more info about doing this than doing HTML -> .doc.
Posted 09 June 2014 - 07:45 AM
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.