How to create a word document from a HTML page

  • Thread starter Thread starter Mohan Kumar via DotNetMonster.com
  • Start date Start date
M

Mohan Kumar via DotNetMonster.com

I have a sequence of asp forms to take data from the user from which I have to create a word doc in a predefined format with the data inputted inserted appropraitely.
How can I do this?
 
What do you do with the Word Documents and where are the responses stored.
Id suggest you just save the responses to a db and do a MailMerge from word.
 
Mohan Kumar via DotNetMonster.com said:
I have a sequence of asp forms to take data from the user from which I
have to create a word doc in a predefined format with the data inputted
inserted appropraitely.
How can I do this?

Output the info formatted as HTML and use Response.ContentType =
"application/msword" to trick the browser into thinking the output is a Word
doc.

Similar technique used for Excel:
http://support.microsoft.com/kb/199841/EN-US/

Similar technique used for Word and RTF:
http://support.microsoft.com/kb/270906/EN-US/
 
Back
Top