Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am beginner in ASP 3.0

I want to display pdf files in ASP

I can't find any related web page
please help if you can
:)
Posted
Comments
AnkitGoel.com 10-Dec-12 6:38am    
do you want to just display pdf file or you want to create and then display pdf ?
Aarti Meswania 10-Dec-12 6:39am    
just display

 
Share this answer
 
Comments
Aarti Meswania 10-Dec-12 7:48am    
it is working thank you :)
Aarti Meswania 10-Dec-12 8:01am    
I want to see file in a division
without uploading online
C#
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition",
    "attachment;filename=\"FileName.pdf\"");

Response.BinaryWrite(yourPdfAsByteArray);

Response.Flush();

Response.End();


hope it helps.
 
Share this answer
 
Comments
Aarti Meswania 10-Dec-12 8:02am    
it is not working

I want in asp
not in asp.net
AnkitGoel.com 10-Dec-12 8:47am    
dear a don't know ASP can u convert it by urself or using some online tool?
Aarti Meswania 13-Dec-12 6:20am    
okay thank you! :)
AnkitGoel.com 13-Dec-12 13:35pm    
please mark as answer if helped.

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