print issue
-
Hi I have an application that will display text context(Ex: Questions and Answers). My application has an option to display "Black text on white Background" or "White text on Black Background". We are also providing Print function to print text. I am facing an issue here , when I am printing when the mode is "White text on Black Background" i am still seeing printed content as "Black text on white Background" on some machines (very few) with same IE version. Can we restrict styles when we are printing using Javascript. I am using below javascript for printing. document.frames['My_frame'].focus(); document.frames['My_frame'].print(); Thanks, Salmon.
-
Hi I have an application that will display text context(Ex: Questions and Answers). My application has an option to display "Black text on white Background" or "White text on Black Background". We are also providing Print function to print text. I am facing an issue here , when I am printing when the mode is "White text on Black Background" i am still seeing printed content as "Black text on white Background" on some machines (very few) with same IE version. Can we restrict styles when we are printing using Javascript. I am using below javascript for printing. document.frames['My_frame'].focus(); document.frames['My_frame'].print(); Thanks, Salmon.
You need to specify a style sheet just for printing as:
In the style sheet (print) are styles that are only used to print and that will replace any other styles.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
You need to specify a style sheet just for printing as:
In the style sheet (print) are styles that are only used to print and that will replace any other styles.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
HI thanks for your reply, Currently I am using one style sheet that doesnot have any media attribute. Do i need to add one more style sheet with same CSS class names with media attribute as Print. Please suggest
-
HI thanks for your reply, Currently I am using one style sheet that doesnot have any media attribute. Do i need to add one more style sheet with same CSS class names with media attribute as Print. Please suggest
Yes, as per my example you have one style sheet for the 'screen' and one for 'print' (There are other options as well but not pertinent here). The one for print can contain styles that, for instance, render buttons and other clutter hidden and display other elements that you wouldn't normally want to see on the screen. You'll need to experiment to get what you want but that, essentially, is how it is done.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me