473,903 Members | 3,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11479
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.individua l.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.rem ovet...@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*****@myreal box.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...@g mail.com" <usenet.su...@g mail.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1346
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 pre printing document page size only , but not the acutal size of real paper.I would like to know how to set the acutal paper size in programing level.Thanks a lot Any reply is appreciated
5
556
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 know something must be different on the machines. But what? I have checked everything ! Thanks, Ira
0
11572
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 paper size in crystal report. However, 1. in web form, the crystal report viewer perview cannot identify the paper setting and use A4 instead. The print out is always with A4. 2. in win form, the crystal report viewer preview looks fine but...
0
1079
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
1101
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
1553
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 form by using Start/Printer and Faxes and then right click a printer and chose Properties and then generate a new form, my program then shows the form in PrintDialog (code below) and if selected mPD then contains the correct sizes.
6
12442
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 card is 79mm high and 210 mm large, and each card is on a paper with the same size, but I'm unable (don't know really how) to create a report to print out my cards as defined.
1
9960
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 to my class constructor: Dim customPaperSize As New Printing.PaperSize("8x10", 800, 1000)
0
3301
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 howerver, When I run vb.net 2005 + CR (Preview the report) and check the printer I found that the printer become HP LaserJet with A4 size.
0
11285
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10878
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10986
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4727
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3324
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.