Solved

Displaying a PDF in a page without using frames

Posted on 2004-09-15
6
269 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
ID: 12069718
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
ID: 12069762
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
ID: 12069870
<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
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 9

Author Comment

by:crescendo
ID: 12069915
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
ID: 12069972
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
ID: 12070032
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

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

11 Experts available now in Live!

Get 1:1 Help Now