Solved

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

Posted on 2013-06-19
7
426 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now