?
Solved

include pdf in asp page

Posted on 2004-04-26
7
Medium Priority
?
503 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

764 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