include pdf in asp page

i would like to have my pdf file included in my asp page.

what code do i have to insert in my asp page so the pdf will be included inside the page and not as an external link.


the name of the pdf file is  registration.pdf

thanks
LVL 1
gianitooAsked:
Who is Participating?
 
Sleepyhead_NOCommented:
<iframe name="pdf_file" src="registration.pdf" style="width:400px;height:300px;"></iframe>

will bring up the adobe acrobat reader within your page as an iframe.
0
 
SlimshaneeyCommented:
You best bet is to 'redirect' to the pdf file i.e.
response.redirect "file.pdf"
Not everyone will have the ablility to read pdf files in their broiwser though...
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
alorentzCommented:
PDF's use Adobe Reader via the browser, but it's independent and external.  Don't think you can do that...
0
 
hongjunCommented:
ya it depends on what being installed on the machine.
0
 
deighcCommented:
You can't do that. You can only have one content type per request. You'll need to make link to the document.
0
 
alorentzCommented:
@Sleepyhead_NO - yeah, thought of that earlier, but never tested.  Probably will work, but I hate frames... ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.