Solved

Printing HTML background colors

Posted on 2002-05-24
21
257 Views
Last Modified: 2010-04-09
I've a HTML page that should be printed. A few table cells have a bgColor attribute, but the color is eliminated on the printed page.

How can I keep the background colors on the printed page? (is there any trick or walkaround?)
0
Comment
Question by:jarleberge
[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
  • 4
  • 4
  • 3
  • +6
21 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 7031727
i dont think there is a workaround. but wait for others as iam not absolutely sure.

anyway it think it will depend on the browser itself, this is one of those cross browser issues
0
 
LVL 3

Accepted Solution

by:
malcx earned 100 total points
ID: 7031737
In IE
Tools > internet options > advanced > printing > print background colors etc...

You cannot override the users settings - sorry,

Mal
0
 
LVL 3

Expert Comment

by:malcx
ID: 7031738
>>(is there any trick or walkaround?)
Display the whole page a s a gif ;-)
0
Independent Software Vendors: 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 19

Expert Comment

by:webwoman
ID: 7031831
It's up to the user whether background colors/graphics print. They don't want them, they don't print. The default is for them NOT to print.

You can't override the user. They can override YOU, but not the other way around. It is THEIR computer/printer, after all. ;-)
0
 

Author Comment

by:jarleberge
ID: 7031846
I'm sure there is a workaround, ex. to implement a servlet which produces a bytestream of picture data and takes the content as a parameter. I was just wonderering if there was any pure HTML solutions.
0
 
LVL 18

Expert Comment

by:bruno
ID: 7032236
>> I was just wonderering if there was any pure HTML solutions.

no.
0
 
LVL 2

Expert Comment

by:jsmckenzie
ID: 7032314
check out the media stylesheet attribute.  It's not supported by all browsers though.

http://www.w3.org/TR/REC-CSS2/media.html

0
 
LVL 2

Expert Comment

by:CompuTurk
ID: 7033348
In IE
Tools > internet options > advanced > printing > print background colors etc...

You cannot override the users settings - sorry,

Mal
------------------------------>

Here is an idea:  Ask users to turn this feature on.  =)

Good luck,
-CompuTurk
0
 

Expert Comment

by:kellene00
ID: 7046632
I've tried turning the print background images feature on to print out a newsletter, the images were all printed out, but the printer started printing out all the webpages that were hyperlinked to the newsletter as well.  Does anyone know how to work around this?
0
 

Expert Comment

by:kellene00
ID: 7046634
I've tried turning the print background images feature on to print out a newsletter, the images were all printed out, but the printer started printing out all the webpages that were hyperlinked to the newsletter as well.  Does anyone know how to work around this?
0
 

Expert Comment

by:kellene00
ID: 7046646
I've tried turning the print background images feature on to print out a newsletter, the images were all printed out, but the printer started printing out all the webpages that were hyperlinked to the newsletter as well.  Does anyone know how to work around this?
0
 
LVL 18

Expert Comment

by:bruno
ID: 7046822
I thought i remembered an option about "print all linked documents" but i can't find it....check your printer page setup... file > page setup
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7116655
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I will recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
0
 
LVL 2

Expert Comment

by:jsmckenzie
ID: 7117220
delete... jarleberge hasn't responded in a month, and there's nothing really new or of interest in the comments (mine included).
0
 
LVL 18

Expert Comment

by:bruno
ID: 7117236
does kellene00 = jarleberge?
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7118327
bruno, jarleberge is the questioner.
0
 
LVL 18

Expert Comment

by:bruno
ID: 7118491
read the thread lexx
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7119555
oops
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7119556
CT will be mad
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7130645
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
delete  --  ATTENTION MOD -- Dup account?

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 

Author Comment

by:jarleberge
ID: 7131251
...time to finalize the question. There's no easy solution to reuse the whole HTML design without telling the user to change the browser settings.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
I need to make my existing Javascript Menu conditional within my ASP.Net/C# Application 32 53
Html split(text) 2 46
Hide and Unhide Table 6 42
.CSS HTML Help 3 55
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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…

737 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