Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to Word document

Status
Not open for further replies.

GoTerps88

Programmer
Apr 30, 2007
174
US
I'm able to export text content to a Word document, but what I'm really after is to produce an HTML table displayed in Word. Right now, if I try to export html content, it only shows the markup tags.

Code:
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/vnd.ms-word";
Response.Write("<b>Some text</b>");
Response.Flush();
Response.Close();

If someone can provide some guidance on this, it would be definitely appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top