How to create a word document from a HTML page

  • Thread starter Mohan Kumar via DotNetMonster.com
  • 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?
 
J

JohnFol

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.
 
T

Tom Kaminski [MVP]

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top