Solved

include pdf in asp page

Posted on 2004-04-26
7
496 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:gianitoo
7 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 10919993
0
 
LVL 11

Expert Comment

by:Slimshaneey
ID: 10920001
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
 
LVL 31

Expert Comment

by:alorentz
ID: 10920007
PDF's use Adobe Reader via the browser, but it's independent and external.  Don't think you can do that...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 33

Expert Comment

by:hongjun
ID: 10920038
ya it depends on what being installed on the machine.
0
 
LVL 15

Expert Comment

by:deighc
ID: 10920336
You can't do that. You can only have one content type per request. You'll need to make link to the document.
0
 
LVL 3

Accepted Solution

by:
Sleepyhead_NO earned 500 total points
ID: 10920637
<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
 
LVL 31

Expert Comment

by:alorentz
ID: 10920765
@Sleepyhead_NO - yeah, thought of that earlier, but never tested.  Probably will work, but I hate frames... ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Age between date range query (SP) 13 52
Time/Date Query 11 37
PDF Embed pdfobject.js local path problem regular ASP 2 117
Adjust the position 3 49
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now