Re: [WSG] Force landscape on a print style sheet?

2008-01-09 Thread Ca Phun Ung

wsg wrote:
I'm doing a print style sheet for a reporting system, and I'm trying 
to figure out if it's possible to force a printer to print in 
landscape orientation using CSS 


Yes, there is something like that in CSS. The W3C have something called 
Paged Media, see [1]. You could print in landscape just by adding the 
following clause to the print style sheet:


@page {size: landscape;}

However, sadly browser support is still lacking. The above does not work 
in Firefox, IE or Safari. Only Opera seems to like it.


[1] http://www.w3.org/TR/REC-CSS2/page.html

Ca Phun Ung
http://yelotofu.com





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] Force landscape on a print style sheet?

2008-01-08 Thread wsg
I'm doing a print style sheet for a reporting system, and I'm trying to figure 
out if it's possible to force a printer to print in landscape orientation using 
CSS.

I know there are postscript and PCL commands to switch the printer to 
landscape, but I'm not sure if you can add PCL Commands to the print stream 
from the browser.  Can you?  Anyone know how that would be done? Alternatively, 
how would you force the page to print in landscape? 

At the moment I have a workaround, in that the user calls up the report to the 
browser,  then goes to print preview and selects print preferences to print in 
landscape,  then sends the job to print. But I'd like to make it automatic if I 
can.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks Pty Ltd
http://afpwebworks.com
Full Scale ColdFusion hosting from A$15/month




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***