Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving a html page as a word document

 
rita mistry
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Is it at all possible to save a html page as a word document at the click of a button.
Basically the html page will have a form where the user enters their details. However, instead of submitting I want to save that page will all the entered details as a word document by clicking a button.
Is this at all possible?
Any help will be very much appreciated.
Many Thanks,
Rita.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rita, are you wanting to save the word file on the server side, or display it to the client?
bear
 
swaroop shastri
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am assuming that the completed form is saved as a word document on the client and the form is never submitted to the server. This can be done using javascript. You might want to research on document.open(...) method. Also, you need to know the word doc format.
 
Arathi Rajashekar
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Rita, are you wanting to save the Word file on the server side, or display it to the client?
bear

Hi
How do you save the word file on the server side. Later how do you access that word file to see the client details.
Thanks Arathi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic