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
Get Chitika Premium
Posted by Beauregard T. Shagnasty on January 29, 2008, 8:42 am
Please log in for more thread options
Al Grant wrote:

> I and colleagues are the users and this is how we would
> prefer to do it. ...
>
> Why the assumption that I'm setting up a public website
> that has to be acceptable to the US market?

Please note the name of this Usenet newsgroup. See the "www" ?
"World Wide Web"

Then kindly point out in your posts where you said this site of yours is
on an intranet, or otherwise not accessible to the "w".

Thanks for your consideration.

--
-bts
-Friends don't let friends drive Vista

Posted by Scott Bryce on January 29, 2008, 10:32 am
Please log in for more thread options
Al Grant wrote:
> 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.

If you need this much control over the page layout, you might consider
delivering in PDF format.

You still have no control over the paper size in the user's printer, and
the user can still resize the page, but you can format the page
specifically to fit a certain size of paper and hope the user
understands that.

Posted by Andy Dingley on January 29, 2008, 5:06 am
Please log in for more thread options

> What if the user doesn't have A3 paper?

Then the page should throw some degree on exception on printing,
possibly recoverable for manual intervention.

This isn't about selfishly excluding Americans who only have letter
and legal paper, it's about auto-switching printers with multiple
paper trays. It's a useful feature - nothing at all wrong with it.


AFAIK, it's not possible (for good, practical, standards-based
solutions available today). Future CSS will do it one day, in the
meantime there are IE-only solutions using an ActiveX control (start
looking with ScriptX from MeadCo)

Posted by Harlan Messinger on January 28, 2008, 2:40 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. 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.

Definitely not in HTML. In CSS3, yes, but this isn't an official
recommendation yet and I doubt it has sufficient browser support,
particularly in IE, though I could be wrong.

Posted by Harlan Messinger on January 28, 2008, 2:42 pm
Please log in for more thread options
Harlan Messinger wrote:
> 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. 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.
>
> Definitely not in HTML. In CSS3, yes, but this isn't an official
> recommendation yet and I doubt it has sufficient browser support,
> particularly in IE, though I could be wrong.

I'm not wrong. IE7 doesn't support it.

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