Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 460
  • Last Modified:

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

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
Kamal Khaleefa
Asked:
Kamal Khaleefa
  • 4
  • 2
2 Solutions
 
Luis PérezSoftware Architect in .NetCommented:
I think this is a problem on your printer's settings. Sure it's no ASP.net/VB/javascript problem.
0
 
Jitendra PatilSr.Software EngineerCommented:
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
 
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
It happens in all browser
Also i set the option to print background colors and not working
0
Technology Partners: 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!

 
Luis PérezSoftware Architect in .NetCommented:
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
 
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
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
 
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
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
 
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
you have to set the media directive to print
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now