You are here: Re: Print preview / printing screwed up in IE but not in Mozilla / Firefox - Whazzup?? « HTML « IT news, forums, messages
Re: Print preview / printing screwed up in IE but not in Mozilla / Firefox - Whazzup??

Posted by Neo Geshel on 12/21/08 11:22

Jim Moe wrote:
> Neo Geshel wrote:
>
>> I'm helping on a web site, and it's got our knickers in a knot. We're
>> using the same basic CSS files (with mods) and same headers as from
>> our other sites, but the "print preview" won't work correctly on this
>> site.
>>
> There are a lot of validation errors. Perhaps fixing those might help.
> Also, since you have "IE7 enhanced" at the bottom, which IE are you
> using?
> IIRC IE6 also does not appreciate "<?xml ...>" at all. It puts IE into
> Quirks mode.
>

I've replaced <iframe /> with <object /> to bring in the ads, and
everything validates now.

Incidentally, doing so causes bad scrollbars in IE, but I've managed to
get that problem licked. Turns out that with anything other than a flash
file, IE considers an <object /> to be bringing in another window. What
I mean by that is, try bringing in an image using <object />, and then
look at the raw image in IE (when you reference it directly, *not*
through a web page). Both pad the image by the same amount. This is the
same no matter what you bring in using <object />, except for flash
files (which I believe "trick" IE's <object /> tag into thinking that
the flash file is a web page with <body style="border: 0px; margin: 0px;
padding: 0px;" />, so that there is no padding).

What works is, if you are using CGI, such as PHP, ASP, ASP.NET or any
other server-side language. You simply reference a CGI page with the
object tag, and pass on to the CGI page appropriate variables that allow
the CGI page to retrieve the appropriate files (be they images or other
content!!). And to get rid of the scrollbars for the <object /> tag?
Simply use <body style="border: 0px; margin: 0px; padding: 0px;"
scroll="no"> in the CGI page that it references.

Neato!

Now, howzabout focusing on what I asked for, mainly how to get IE's
print output / print preview as nice as that of Mozilla / Firefox...

....Geshel
--
**********************************************************************
My reply-to is an automatically monitored spam honeypot. Do not use it
unless you want to be blacklisted by SpamCop. Please reply to my first
name at my last name dot org.
**********************************************************************

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация