473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Set printer paper size from HTML?

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
23 11385
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: anthony | last post by:
hello , is there any simple way to override control panel>printer and fax>printer paper size setting by c# or vb.net?I tried the Printing.PrinterSettings class , however it seems use for setting my...
5
by: Ira S | last post by:
I use a DYMO labelwriter with my Access 97 database. I just purchased a new computer and in the report section under page setup/paper size, the new computer keeps changing the size automatically. I...
0
by: Anniech | last post by:
I use VB.NET to integrate with crystal report 9.0 to print a report with custom paper size (using Dot Matrix printer). I have already added a custom paper size in the printer server and set the...
0
by: bafidi | last post by:
please hel i cant change the default printer papersiz can you show me an example for a4 paper siz and custom paper siz
0
by: Just Me | last post by:
I want to save and then be able to restore the printer paper size. Something like: WriteLine(lFileNum, gAddressesPD.DefaultPageSettings.PaperSize.ToString) Then:
0
by: Academic | last post by:
I posted this in the vb group but it is a pretty esoteric question and I did not get a reply. I'm hoping someone here has some experience generating custom printer forms. If I generate a new...
6
by: Brewtzaff | last post by:
Hello, I have a little problem to print my reports on custom sized paper. I got a db containing clubmembers, a query which selects only the needed infos to print out my membershipcards. My...
1
by: Anne DeBlois | last post by:
Hi, I want to programatically set the paper size of a print document. I created a class that inherits PrintDocument, so I can print some database records on 8" x 10" paper. I added this line...
0
by: Agnes | last post by:
my PC default printer is Hp LaserJet my invoice 's printer is Epson and with German Standford paper size I had already set the paper size & printer during Crystal report's designer's mode ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.