Solved

Displaying a PDF in a page without using frames

Posted on 2004-09-15
6
268 Views
Last Modified: 2012-05-05
My app lets a user select a PDF report, and then displays it in a new window. My client now thinks it would look better in the main page, retaining the menus down the left so that he doesn't "get lost".

My page doesn't use frames, it uses tables to lay out the page. Is there a way to display a document in a table cell without using frames or IFRAMEs? Browser compatibility is an issue here.
0
Comment
Question by:crescendo
  • 3
  • 3
6 Comments
 
LVL 33

Expert Comment

by:raterus
Comment Utility
Tell your client if he wants browser compatibility, best to leave it in a frame/iframe, that way the browser decides how it is displayed.  You could do this with a third-party control they would have to download, then that wouldn't be very browser compatible.  I don't know how to do this, but I would imagine you could use adobe's pdf plugin within the page if you knew how to correctly identify it with an <object> tag.

Good Luck!

--Michael
0
 
LVL 9

Author Comment

by:crescendo
Comment Utility
I'm trying to avoid frames because it's a fair amount of work to change my app to use them, and I have a suspicion that when the client sees the result he'll say he preferred a new window after all.

Iframes are easy, but I think only IE 5.5+ supports them, so Netscape and old IE browsers won't see the output properly.
0
 
LVL 33

Accepted Solution

by:
raterus earned 250 total points
Comment Utility
<iframes> are a little more available than IE 5.5+
http://www.webmastersupercenter.com/webdesign_browser.htm

I think you'll be safe using them, especially if you look at the statistics for who is using what browser these days.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 9

Author Comment

by:crescendo
Comment Utility
Fair enough, that makes it easy to please the client, so thanks again!

The reason I'm reluctant to invest too much energy in this is that the client has already given me a hard time making me scale everything to fit in an 800 x 600 window, "just in case". Now he wants to display the PDF in the 650 pixels to the right of the navigation menu. It will be unreadable, and he'll change his mind.
0
 
LVL 33

Expert Comment

by:raterus
Comment Utility
Don't you just love when they come to you and say "On second thought...I really want it like this now..."  Give them a quick demo page and ask them "Are you really sure you want it like this?"
0
 
LVL 9

Author Comment

by:crescendo
Comment Utility
Already done it!

That's why I like <iframe>, it's so painless.

It gets my goat that this is a fixed-price project at a rock bottom price. Contractually I could argue that I've done what they asked, but the reality is that I won't get paid until they are happy.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

12 Experts available now in Live!

Get 1:1 Help Now