By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,492 Members | 1,987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,492 IT Pros & Developers. It's quick & easy.

Set printer paper size from HTML?

P: n/a
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.
Jan 28 '08 #1
Share this Question
Share on Google+
23 Replies


P: n/a
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
Jan 28 '08 #2

P: n/a
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.
Jan 28 '08 #3

P: n/a
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.
Jan 28 '08 #4

P: n/a
In article <60*************@mid.individual.net>,
Bergamot <be******@visi.comwrote:
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!
Jan 28 '08 #5

P: n/a
On Jan 28, 1:42 pm, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
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.
You are always wrong because your an idiot.
Jan 29 '08 #6

P: n/a
On 1/28/2008 11:25 AM, 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.
Being in the U.S., I have letterhead and legal sizes of paper but no A3.
Do you mean that I should not print your page?

As for your "IE-only would be better than nothing", the trend is that
IE-only might someday become nothing. IE's share of the browser market
has been declining steadily for the past four years.

--
David Ross
<http://www.rossde.com/>

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.
Jan 29 '08 #7

P: n/a
Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<al*****@myrealbox.com>:
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.
Stop wanting that. What size paper I use is my business, not yours.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jan 29 '08 #8

P: n/a
On Jan 29, 11:52 am, "usenet.su...@gmail.com" <usenet.su...@gmail.com>
wrote:
You are always wrong because *your* an idiot.
lol Irony much?

Jan 29 '08 #9

P: n/a
On 28 Jan, 19:38, Bergamot <berga...@visi.comwrote:
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)
Jan 29 '08 #10

P: n/a
On 29 Jan, 05:51, Stan Brown <the_stan_br...@fastmail.fmwrote:
Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<algr...@myrealbox.com>:
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.

Stop wanting that. What size paper I use is my business, not yours.
What I put on my pages is my business, not yours.
Jan 29 '08 #11

P: n/a
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.
Jan 29 '08 #12

P: n/a
Al Grant <al*****@myrealbox.comwrote in news:50cea324-cc0b-4afd-a9f3-
b0**********@d4g2000prg.googlegroups.com:
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.
A CSS rollover on the button to set some image to say "USE A3 PAPER
SETTINGS" is easy to implement and would seem to be better than nothing in
your specific situation. Sorry this isn't more use.
Jan 29 '08 #13

P: n/a
Al Grant wrote:
On 29 Jan, 05:51, Stan Brown <the_stan_br...@fastmail.fmwrote:
>Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<algr...@myrealbox.com>:
>>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.
Stop wanting that. What size paper I use is my business, not yours.

What I put on my pages is my business, not yours.
*My* pages. *My* paper. *My* printer.

(This seems like such an odd thread. How w many people you think happen
to have a tray loaded with A3 paper sitting on their printer anyway?)
Jan 30 '08 #14

P: n/a
Harlan Messinger <hm*******************@comcast.netwrote in
news:60*************@mid.individual.net:
Al Grant wrote:
>On 29 Jan, 05:51, Stan Brown <the_stan_br...@fastmail.fmwrote:
>>Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<algr...@myrealbox.com>:
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.
Stop wanting that. What size paper I use is my business, not yours.

What I put on my pages is my business, not yours.

*My* pages. *My* paper. *My* printer.

(This seems like such an odd thread. How w many people you think happen
to have a tray loaded with A3 paper sitting on their printer anyway?)
I used to have an A3 printer. I hated printing anything from the web,
because so many people did things in weird ways, and I was forced to use
Internet Explorer (this was around 1999 - 2003) on Windows 2000. All
technology sucks, but printing stuff out from the web, using IE, in 2002,
with piss-poor )(or no) css and spacer pixels and all that went with
them, REALLY SUCKED.

I have a lot of sympathy for the OP, especially if he's in the UK,
because often a boss will force the staff to do something in a suboptimal
way.

Jan 30 '08 #15

P: n/a
On 30 Jan, 14:15, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
US business generally makes it possible.
You've not tried to buy a non-locally sized paper tray for a HP
printer, have you? 8-)
Jan 30 '08 #16

P: n/a
bealoid wrote:
Harlan Messinger <hm*******************@comcast.netwrote in
news:60*************@mid.individual.net:
>Al Grant wrote:
>>On 29 Jan, 05:51, Stan Brown <the_stan_br...@fastmail.fmwrote:
Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<algr...@myrealbox.com>:
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.
Stop wanting that. What size paper I use is my business, not yours.
What I put on my pages is my business, not yours.
*My* pages. *My* paper. *My* printer.

(This seems like such an odd thread. How w many people you think happen
to have a tray loaded with A3 paper sitting on their printer anyway?)

I used to have an A3 printer. I hated printing anything from the web,
because so many people did things in weird ways, and I was forced to use
Internet Explorer (this was around 1999 - 2003) on Windows 2000. All
technology sucks, but printing stuff out from the web, using IE, in 2002,
with piss-poor )(or no) css and spacer pixels and all that went with
them, REALLY SUCKED.

I have a lot of sympathy for the OP, especially if he's in the UK,
because often a boss will force the staff to do something in a suboptimal
way.
Well, in this case the discussion is, practically speaking, academic,
because there *is* no way to fulfill this request.
Jan 31 '08 #17

P: n/a
Tue, 29 Jan 2008 04:56:47 -0800 (PST) from Al Grant
<al*****@myrealbox.com>:
On 29 Jan, 05:51, Stan Brown <the_stan_br...@fastmail.fmwrote:
Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<algr...@myrealbox.com>:
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.
Stop wanting that. What size paper I use is my business, not yours.

What I put on my pages is my business, not yours.
That's irrelevant, unless you're planning to provide the paper I
print on.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jan 31 '08 #18

P: n/a
On 30 Jan, 16:01, bealoid <sig...@bealoid.co.ukwrote:
I have a lot of sympathy for the OP, especially if he's in the UK,
because often a boss will force the staff to do something in a suboptimal
way.
Maybe, but in this case everyone wants maximally readable
printout, all have A3, and it's suboptimal to force people to
go into printer preferences (different between Windows and
Unix, and on Windows different for every kind of printer) to
select it when we could offer a "print as A3" button instead.
Jan 31 '08 #19

P: n/a
Al Grant wrote:
>
in this case everyone wants maximally readable
printout, all have A3, and it's suboptimal to force people to
go into printer preferences (different between Windows and
Unix, and on Windows different for every kind of printer) to
select it when we could offer a "print as A3" button instead.
HTML, with or without CSS, isn't really the best tool for this
particular job. It's an inherently flexible media, but here you'd like
it to be inflexible. Good luck with that.

--
Berg
Jan 31 '08 #20

P: n/a
Al Grant <al*****@myrealbox.comwrote in
news:a5**********************************@k2g2000h se.googlegroups.com:
On 30 Jan, 16:01, bealoid <sig...@bealoid.co.ukwrote:
>I have a lot of sympathy for the OP, especially if he's in the UK,
because often a boss will force the staff to do something in a
suboptimal way.

Maybe, but in this case everyone wants maximally readable
printout,
About the only time you'll ever hear me say this: Have you considered PDF?
Feb 1 '08 #21

P: n/a
bealoid <si****@bealoid.co.ukwrote in
news:Xn************************@194.117.143.53:
Al Grant <al*****@myrealbox.comwrote in
news:a5**********************************@k2g2000h se.googlegroups.com:
>On 30 Jan, 16:01, bealoid <sig...@bealoid.co.ukwrote:
>>I have a lot of sympathy for the OP, especially if he's in the UK,
because often a boss will force the staff to do something in a
suboptimal way.

Maybe, but in this case everyone wants maximally readable
printout,

About the only time you'll ever hear me say this: Have you considered
PDF?

I mean tbis politely, and as friendly advice. I'm not being snarky and
apologize if it seems to be so.
Feb 1 '08 #22

P: n/a
It seems that my original response was not properly distributed.
Here it is :

In comp.infosystems.www.authoring.html message <MPG.
220b573aa0f297298b40
9@news.individual.net>, Thu, 31 Jan 2008 03:56:14, Stan Brown
<th************@fastmail.fmposted:
>Tue, 29 Jan 2008 04:56:47 -0800 (PST) from Al Grant
<al*****@myrealbox.com>:
>On 29 Jan, 05:51, Stan Brown <the_stan_br...@fastmail.fmwrote:
Mon, 28 Jan 2008 11:25:05 -0800 (PST) from Al Grant
<algr...@myrealbox.com>:
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.

Stop wanting that. What size paper I use is my business, not yours.

What I put on my pages is my business, not yours.

That's irrelevant, unless you're planning to provide the paper I
print on.
If you do not want to print on A3, then you merely need to not use the
button.

I don't recall the OP saying that he would inhibit other ways of
printing, though he does seem to expect that his users will generally
choose this button if it can be provided.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE6 IE7 FF2
Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/
index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates,
sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items,
links.
Feb 2 '08 #23

P: n/a
It seems that my original response was not properly distributed.
Here it is :

In comp.infosystems.www.authoring.html message
<170e83d6-704d-43e7-9fad-
99**********@1g2000hsl.googlegroups.com>, Wed, 30 Jan 2008 10:59:19,
Andy Dingley <di*****@codesmiths.composted:
>On 30 Jan, 14:15, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
>US business generally makes it possible.

You've not tried to buy a non-locally sized paper tray for a HP
printer, have you? 8-)
No. My HP printer comes with a paper tray that is adjustable, as far
as
I can see, for any size that is not much bigger than A4, and Printer
Setup offers a wide range of sizes including inch-denominated ones.
Previous printers, while not having trays, had comparable flexibility.

I don't recall ever seeing a printing device needing different trays
for
slight changes of size, though A3 & A4 trays might differ.

Therefore I'd not expect to be able to buy non-locally-sized trays
anywhere. OTOH, HP's listing of trays may differ with locality, so
that
the locally-favoured sizes are conspicuous.

DER was referring to paper sizes; he made no mention of any difficulty
in using A3, if he had some to hand.

--
(c) John Stockton, nr London UK. ??@merlyn.demon.co.uk Turnpike
v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms,
& links.
In MS OE, choose Tools, Options, Send; select Plain Text for News and
E-mail.
Don't quote more than is needed, and respond after each quoted
part.
Feb 2 '08 #24

This discussion thread is closed

Replies have been disabled for this discussion.