Click here to get back home

Set printer paper size from HTML?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Set printer paper size from HTML? Al Grant 01-28-2008
Posted by Al Grant on January 28, 2008, 2:25 pm
Please log in for more thread options
I have a 'printable' button to generate printable output
and want this to use A3 if available, irrespective of the
user's default printer setting. Is there any way to set
a page's preferred printed paper size from HTML?
Portable if possible, but IE-only would be better than nothing.

Posted by Bergamot on January 28, 2008, 2:38 pm
Please log in for more thread options
Al Grant wrote:
> I have a 'printable' button to generate printable output
> and want this to use A3 if available, irrespective of the
> user's default printer setting.

What if the user doesn't have A3 paper?

--
Berg

Posted by David Stone on January 28, 2008, 5:11 pm
Please log in for more thread options

> Al Grant wrote:
> > I have a 'printable' button to generate printable output
> > and want this to use A3 if available, irrespective of the
> > user's default printer setting.
>
> What if the user doesn't have A3 paper?

What if the user does have A3 paper, but wants to print on
A4 paper anyway? Maybe they even prefer to do a "two up"
layout to save paper, so each page is effectively A5?

There's a reason that these things are called USER preferences!

Posted by Al Grant on January 29, 2008, 7:54 am
Please log in for more thread options
> What if the user does have A3 paper, but wants to print on
> A4 paper anyway? =A0Maybe they even prefer to do a "two up"
> layout to save paper, so each page is effectively A5?
> There's a reason that these things are called USER preferences!

I and colleagues are the users and this is how we would
prefer to do it. The pages contain machine-generated reports.
The HTML specifies the fonts, font sizes, colors etc. to
maximise readability; specifying a paper size preference
would avoid paper wastage when people forget to select A3
and get something unreadably small.

Why the assumption that I'm setting up a public website
that has to be acceptable to the US market? It seems to
reflect a narrow view of what HTML can be used for.

Posted by David Stone on January 29, 2008, 8:27 am
Please log in for more thread options
In article

> > What if the user does have A3 paper, but wants to print on
> > A4 paper anyway?  Maybe they even prefer to do a "two up"
> > layout to save paper, so each page is effectively A5?
> > There's a reason that these things are called USER preferences!
>
> I and colleagues are the users and this is how we would
> prefer to do it. The pages contain machine-generated reports.
> The HTML specifies the fonts, font sizes, colors etc. to
> maximise readability; specifying a paper size preference
> would avoid paper wastage when people forget to select A3
> and get something unreadably small.
>
> Why the assumption that I'm setting up a public website
> that has to be acceptable to the US market? It seems to
> reflect a narrow view of what HTML can be used for.

Because you didn't specify otherwise in your post! It was
obvious to you what you were talking about, but not to anyone
else reading your original post. So now you have established
the proper context for your question, hopefully you will get
better answers!

As a starting point, I'd suggest that anything requiring
information about a user's browser, monitor, or printer
settings is going to require Javascript at a minimum. HTML
certainly doesn't provide that information. With CSS, you
could create an @media print block in the style sheet (although
your reply above suggests you may already be doing this) which
would provide A3-specific layout and sizing. But I think that's
about as far as currently implemented HTML/CSS will take you.

Similar ThreadsPosted
printing - can i suggest a paper size/layout? September 12, 2006, 8:21 pm
doubt in printer options March 17, 2006, 12:52 am
Firefox - Prevent TextField size change when user changes font size? October 3, 2006, 6:21 pm
[XHTML+XML] html and body size December 10, 2005, 11:04 am
How to make font size constant in HTML November 15, 2004, 10:59 pm
window size ??? November 10, 2004, 7:23 am
 tag font and size
December 30, 2004, 12:05 pm
Best way to specify font size December 11, 2005, 6:45 pm
Text size April 2, 2008, 11:52 pm
table cell size July 21, 2004, 2:50 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap