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?
Is there any way to generate a word doc from a html file
Crossbones+ - Reputation: 6516
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.
The voices in my head may not be real, but they have some good ideas!
Crossbones+ - Reputation: 7717
Members - Reputation: 2037
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.
Crossbones+ - Reputation: 4136
Posted 09 June 2014 - 07:45 AM