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!

Response.ContentType = "application/msword" opening in html format

Status
Not open for further replies.

ramnagar

Programmer
Apr 25, 2002
22
US
I would like to export ASP page output to word document . when i use
Response.ContentType = "application/msword"
The page DOES load as a Word document, but no values from the recordset on the page, rather it is showing html source code . Can any body help me how to export to word document from ASP page?...

Thanks in Advance,
Rama Krishna.B

 
Hi Rama Krishna B.,
I suggest that you direct the output first to a text file and then redirect the output of that file to a word document.
The reason that you are being shown HTML code is because if you observe that the output you are seeing is being generated by an ASP script which is actually being displayed.Let me know if you get it.
Regards Tushar
 
Hi Tushar,
Could you please eloborate....

Regards,
Rama Krishna.B
 
Hi Tushar,
Thanks for your reply.Could you please eloborate....

Regards,
Rama Krishna.B
 
hello All,
Can any body help me......

Rgds,
Rama Krishna.B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top