473,395 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

force IE to print background-colors

hi,

is there a way (html/css/javascript) to force IE to print
background-colors exactly as specified in html/stylesheets?

I tried to use @media print { ... } to override IE's "print background
colors + images" option, but it doesn't work. Any other idea?

I'd like to avoid relying on the user for setting this option.

thanks,

--
Felix Natter
Jul 20 '05 #1
3 37175
Felix Natter <fn*****@gmx.net> wrote:
is there a way (html/css/javascript) to force IE to print
background-colors exactly as specified in html/stylesheets?
No. It's a user option.
I tried to use @media print { ... } to override IE's "print background
colors + images" option, but it doesn't work. Any other idea?
As you don't know what sort of printer the user has it's usually best
to be conservative with print stylesheets.
I'd like to avoid relying on the user for setting this option.


Bad luck.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
In short I believe the answer is no:
http://www.developer.com/dhtml/article.php/639581

However if approp. you could produce images and/or pdf files - normally
these should print as you wish with layout/colours as designed originally.

**** or you could ***

++++++++++++++
+ try to use text +
+ +
+ as a method of +
+ +
+ styling pages +
+ +
++++++++++++++

***** not so colourful or exciting tho *****

The other thing you should consider is whether the users printer is working
properly.. they maybe running with one colour missing.
;-)
If they are printing using CMYK and there is no Cyan... and your page uses
that colour for background, then they wont see very much ;-)

--
Keith
"Felix Natter" <fn*****@gmx.net> wrote in message
news:m3************@werkstatt4.ldc...
hi,

is there a way (html/css/javascript) to force IE to print
background-colors exactly as specified in html/stylesheets?

I tried to use @media print { ... } to override IE's "print background
colors + images" option, but it doesn't work. Any other idea?

I'd like to avoid relying on the user for setting this option.

thanks,

--
Felix Natter

Jul 20 '05 #3
In article <m3************@werkstatt4.ldc>, fn*****@gmx.net says...
hi,

is there a way (html/css/javascript) to force IE to print
background-colors exactly as specified in html/stylesheets?
(...)

This ActiveX component might help:
http://www.meadroid.com/sx_intro.asp

It allows you more complete control over such things as background-color
printing, provided the user allows the component to run.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Will Stuyvesant | last post by:
Here is a question for people who are more comfortable than I am with new Python stuff like generators. I am having fun implementing things from the Wizard book (Abelson, Sussman, "Structure and...
9
by: Rhino | last post by:
How hard (and desireable) would it be to give the user certain choices when it comes to printing web pages? The pages on my site use colours and pictures and contain an imbedded menu, among...
4
by: zz | last post by:
Sorry for posting this here but unfortunatly I couldn't find any appropriate newsgroup for this and since I've been active here with .net question I figured you guys might be able to help. ...
21
by: tradmusic.com | last post by:
Hi, We have the following in our stylesheet, which acts as a page header: #homepageheader { left: 0px; top: 0px; right: 0px; height: 183px; background-image:...
1
by: ian.hubling | last post by:
I'm not sure if this is a javascript or a CSS issue... I'm looking for a way to force the printing of a background image when a page is printed. I'm dealing with a couple of large corporate...
3
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
1
by: dpowc | last post by:
How do I print a background image? I read another article that says as long as print background becomes a default for IE settings, we need to "cheat" a little to print a site as close to what we see...
2
by: dmorand | last post by:
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I...
4
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow;...
0
by: tvnaidu | last post by:
I wrote a status page HTML code, here I have 8 port status, it prints first 7 and last status it won't print, from there onwards it won't print footer also, if I make 10 instead 8, then it prints...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.