Click here to Skip to main content
15,616,138 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I Have a pdf file in varbinary(max).so I want to view pdf file without download.
Updated 7-Jan-16 0:45am

to show your pdf file in partial view :

1) You can use embed html tag without need any thrid part script :

<embed src="" width="500" height="375" type='application/pdf'>

2) Or you can use PDF.js, you will find its documentation by clicking on the following link : Link to PDF.js
Share this answer
"<iframe src= '"+fileName+"' width='800px' height='600px' >" + "</iframe>";

This is also done.
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