Solved

window.print In Asp.net (Colors are not shown)

Posted on 2013-06-19
7
439 Views
Last Modified: 2013-07-02
Hi
i have make a simple html Page

i put only labels and i set the colors to them

the problem when i click Print preview or print them from the browser menu
File-->Print
always printed in white and black

i search google and try to change setting in the browser but no luck

Thanks
print.png
0
Comment
Question by:Kamal Khaleefa
[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
  • 2
7 Comments
 
LVL 25

Expert Comment

by:Luis Pérez
ID: 39258981
I think this is a problem on your printer's settings. Sure it's no ASP.net/VB/javascript problem.
0
 
LVL 12

Assisted Solution

by:jitendra patil
jitendra patil earned 500 total points
ID: 39258983
is this happening with all browsers, if no then in which browser are you facing problem?

may be your solution lies in
go to page setup of your browser and Select the Print Background Colors and Images check box.
this should do the work.

Hope this helps.
0
 
LVL 16

Author Comment

by:Kamal Khaleefa
ID: 39259308
It happens in all browser
Also i set the option to print background colors and not working
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 25

Expert Comment

by:Luis Pérez
ID: 39259317
Browse your printer settings, there must be an option in which to choose if you want to print in color or just black ink.
0
 
LVL 16

Author Comment

by:Kamal Khaleefa
ID: 39261481
i think the problem is from my page because if i open any other websites like yahoo ...etc
and click print it will print everything colored

any help????
0
 
LVL 16

Accepted Solution

by:
Kamal Khaleefa earned 0 total points
ID: 39261578
hi
i fix the problem by doing the following

for the style sheet i add media="print" and i make sure no media directive is exist in ths css itself

also i change the setting in browser to print background images
0
 
LVL 16

Author Closing Comment

by:Kamal Khaleefa
ID: 39292527
you have to set the media directive to print
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…

751 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