Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is Response.ContentType For Pdf Reporting ?

C#
MSWord :
Response.ContentType = "application/vnd.ms-word";

MS Excel :
Response.ContentType = "application/vnd.ms-excel";


Help me..
Posted

I have no idea, but 10 seconds on a search engine came up with this:
VB
Response.ContentType = "application/pdf"
 
Share this answer
 
CSS
response.ContentType is A string describing the content type.
For a full list of content types, see your browser documentation or the HTTP specification.


See following link :
http://www.w3schools.com/asp/prop_contenttype.asp
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900