473,659 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

printing - can i suggest a paper size/layout?

hello,

im guessing the answer is "no", but can a webpage set the printer's
paper size & layout? trying to spare my intranet users some extra
steps.
thanks,
matt

Sep 13 '06 #1
13 15223
In article
<11************ *********@p79g2 000cwp.googlegr oups.com>,
ma**@mailinator .com wrote:
hello,

im guessing the answer is "no", but can a webpage set the printer's
paper size & layout? trying to spare my intranet users some extra
steps.
It can hardly set the paper size. That would be too creepy even
if it could be made to work. Imagine the printer opening, the
tray coming out, the A4 in it thrown on the floor, the US Letter
pack being ripped open and 100 sheets drifting through the air
into the tray....

But css can certainly set the layout.... that is what css is
for...

--
dorayme
Sep 13 '06 #2
rf
dorayme wrote:
In article
<11************ *********@p79g2 000cwp.googlegr oups.com>,
ma**@mailinator .com wrote:
>im guessing the answer is "no", but can a webpage set the printer's
paper size & layout? trying to spare my intranet users some extra
steps.

But css can certainly set the layout.... that is what css is
for...
Methinks matt is talking about landscape/portrait in which case the answer
is no, this is a user setting.

--
Richard.
Sep 13 '06 #3
ma**@mailinator .com wrote:
>>im guessing the answer is "no", but can a webpage set the printer's
paper size & layout? trying to spare my intranet users some extra
steps.
dorayme wrote:
>But css can certainly set the layout.... that is what css is
for...
rf <rf@invalid.com wrote:
Methinks matt is talking about landscape/portrait in which case the answer
is no, this is a user setting.
Well, CSS 2.0 did allow "size: landscape", "size: portrait", and even
"size: 8.5in 11in", although CSS 2.1 dropped it. See:
http://www.w3.org/TR/REC-CSS2/page.html#page-size-prop

CSS 3 may reintroduce and extend the size property:
http://www.w3.org/TR/css3-page/#page-size

Browser support? Well, that's another issue...
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Entering Yosemite National Park: laws of gravity strictly enforced"
Sep 13 '06 #4

ma**@mailinator .com wrote:
im guessing the answer is "no",
Actually it's yes, but for small values of yes.

CSS 3 does this, but no-one supports it yet. There's also at least one
useful ActiveX (MeadCo's ScriptX) that does it, for the ( Windows / IE
/ ActiveX permitted ) context.

Sep 13 '06 #5
rf wrote:
Methinks matt is talking about landscape/portrait in which case the answer
is no, this is a user setting.
Unless you are printing from flash, then you can set the printer
orentation. The user has the ability to change it, but you can set it
as the default for that print job.

Sep 13 '06 #6
not following the dramatization -- our printers have multiple paper
trays of various sizes. it would be nice if i could prep the print
dialog w/ the desired size & direction (my use of the work "layout" was
perhaps not the most astute) of the paper.

matt

dorayme wrote:
It can hardly set the paper size. That would be too creepy even
if it could be made to work. Imagine the printer opening, the
tray coming out, the A4 in it thrown on the floor, the US Letter
pack being ripped open and 100 sheets drifting through the air
into the tray....

But css can certainly set the layout.... that is what css is
for...
Sep 13 '06 #7

Darin McGrew wrote:
Well, CSS 2.0 did allow "size: landscape", "size: portrait", and even
"size: 8.5in 11in", although CSS 2.1 dropped it. See:
http://www.w3.org/TR/REC-CSS2/page.html#page-size-prop
ah ha. interesting. that link shows this syntax:

@page {
size: landscape;
}

....however im not used to using "@" class definitions. is that valid
syntax in a .css, just like that?

perhaps i have CSS 2.1 -- in IE 6, even w/ the above page class
definition in my print media's .css, when i get to the OS' print dialog
its still uses my printer's default of portrait. im running on windows
2k pro.
thanks,
matt



>
CSS 3 may reintroduce and extend the size property:
http://www.w3.org/TR/css3-page/#page-size

Browser support? Well, that's another issue...
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Entering Yosemite National Park: laws of gravity strictly enforced"
Sep 13 '06 #8
ma**@mailinator .com wrote:
Darin McGrew wrote:
>Well, CSS 2.0 did allow "size: landscape", "size: portrait", and even
"size: 8.5in 11in", although CSS 2.1 dropped it. See:
http://www.w3.org/TR/REC-CSS2/page.html#page-size-prop

ah ha. interesting. that link shows this syntax:

@page {
size: landscape;
}

...however im not used to using "@" class definitions.
It's a CSS keyword, not a class.
is that valid
syntax in a .css, just like that?
It must be, since the place where you just read about it is the official
definition of valid CSS syntax.
>
perhaps i have CSS 2.1 -- in IE 6, even w/ the above page class
definition in my print media's .css, when i get to the OS' print dialog
its still uses my printer's default of portrait. im running on windows
2k pro.
Even if it was in 2.1, it's unlikely that IE would have implemented it.
Sep 13 '06 #9
Harlan Messinger wrote:
It's a CSS keyword, not a class.
my terminology may not be exactly correct, but my point gets across. i
have far too many technologies & languages under my belt to worry about
appeasing random HTML slingers on usenet.
It must be, since the place where you just read about it is the official
definition of valid CSS syntax.
not necessarily, which is why i asked. ive read far too much
documentation and not known the assumed particulars in order to get
some things work. not talking css here, but programming syntax in
general.

but, let me ask -- whats the point of being a dick? if you dont want to
help me, then dont. let someone else...
matt

Sep 13 '06 #10

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

Similar topics

16
10415
by: gb | last post by:
Hi All, Ive created a popup page using 'var openWindow = window.open("new","pop")' And added content using openWindow.document.write(" "); statements. But now I would like to be able to print this page? openWindow.document.write("<a href='#' onClick='self.close()'>Close<\/a><\/p>")
6
19612
by: Biguana | last post by:
Hi, Just wondering if anyone can help here. We have a site where most of the site opens in a window with no toolbars or menubar: window.open('mypage.aspx','self','toolbar=0, menubar=0, etc, etc) This is because it's a data driven site where space is at a premium and we'd rather discourage use of back, stop and refresh. The problem arises because some "view data" pages are designed to be printed and have an onclick="window.print();"...
1
1201
by: phil cunningham | last post by:
Hi there We have a CAD application written in C# that consists of a series of shapes. We need to product a range of reports for a range of different paper sizes (letter size to 36" paper). Each report contains a Table of Data together with a scaled picture of the shapes, filled in different colors - it may be one page or can be serval pages long.
3
31887
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName = "Weld Image" Dim pkPaperSize As New Printing.PaperSize("sdfgsfdg", 850, 1100)
2
2535
by: Sukh | last post by:
Hi I am stuck with a problem Can anyone help me out from this... I am printing a report on pre-printed continue paper using dot-matrix printer using vb.net. Data is printing on all the locations. But After printing first page it increase paper 3cm vertically/Height so on second
1
9932
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)
2
9962
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default printer settings to print. I wanted the print preview to appear the same for all users (i.e. a default page size of 8.5x14 (legal) and portrait mode). Many users have different printers as their default (plotters etc..) and I found that various...
9
7836
by: Gurbinder Kaur | last post by:
Hi, i have made a project for printing fee receipt. Using Windows-XP, VBasic 6.0 & Ms-Access-97. i have designed a form for prinring receipts. m paper-size is 5x10. Two copies of bills in this size. one for student and other for fee clerk. while printing on dot-matrix, form get printed, but size is A4. My problem is * how to change size to 5x10 (exactly half of printed paper width-wise) * after printing on this size, stop the printer and...
0
832
by: thava | last post by:
Dear All, We're doing a project in C# and its objective is to convert PDF to PDF with different paper size. The existing PDF paper size would be A4 and the converted PDF should be in Letter size with no formatting changes e.g., text size, page layout. Any suggestions and also sample codes would be greately appreciated. Thanks, Thava
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
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...
0
8626
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...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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.