How hard (and desireable) would it be to give the user certain choices when
it comes to printing web pages?
The pages on my site use colours and pictures and contain an imbedded menu,
among other things. Now, I could make certain assumptions on the user's
behalf, such as making the background white and the text black, suppressing
the menu from the printed page, and even suppressing the printing of the
pictures if they are merely decorative rather than functional. But that
might not please visitors who WANT some or all of those things.
Therefore, I'd like to know how hard it would be to give the user choices
when they click the Print (or Print Preview) buttons in their browser. For
instance, I could see a dialog like this appearing (I'll use "[]" to mean a
checkbox and "()" to mean a button):
----------------------------------------------------------------------------
-----------------------------------
1. [] print in same colours as the screen (if the box is unchecked, you will
get black text on white background)
2. [] print graphics that are strictly decorative (if the box is unchecked,
strictly decorative images will not be printed)
3. [] print the menu (if the box is unchecked, the menu will not be printed)
Check the appropriate boxes (if any), then click the Print button.
(Print) (Cancel)
----------------------------------------------------------------------------
-------------------------------------
The problem is that I'm not at all sure how I'd make that dialog appear or
how I would dynamically change the behaviour of the CSS based on the
selections the user made.
JavaScript might come in handy here but I know JavaScript is not considered
a good solution because of browser compatibility issues. I could make all of
my webpages Java applets but I know some people are notoriously reluctant to
install Java plugins in their browsers.
Is there a reasonable way to give the users choice or am I pretty much
forced to make the decisions for them? (Naturally, if I have to make the
decisions for them, I'm going to bend over backwards not to antagonize them
by printing black text on white and suppressing all but the most essential
information. Users who wanted their hard copies to match the screen will
just have to live with my choices.)
I'm basically a programmer and I try very hard to design programs so that
they give the user exactly what they want. Forcing everyone to live with my
choices of what will appear on the printed page and how it will appear
really goes against the grain....
--
Rhino