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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting to RTF prompts to save the Webform, not the report

Status
Not open for further replies.

jmerencilla

Programmer
Jul 17, 2002
123
SG
hi. i'm using CR for VS.Net. im trying to export my report, viewed in IE6, to PDF, EXCEL and RTF format. exportng my report to PDF and EXCEL works fine, ie. my report is exported to these format while IE is active. however, exporting to RFT prompts me to save not the exported file but the webform (.aspx) file. checking my temp directory reveals that the report was properly exported to RTF but i need to view this file using IE. is there a way to do this? thanks

ps. i included a sample code that export my report to these 3 formats. i only change my content type depending on my desired export format.

Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-word"
Response.WriteFilestrFileName)
Response.Flush()
Response.Close()



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top