Click to See Complete Forum and Search --> : Page print in landscape format


andrada
12-27-2002, 11:03 AM
Is any way to setup with java script the orientation for the printer? The default is portrait and I want to change this to Landscape
Thanks.

swon
12-27-2002, 11:17 AM
No, maybe you can set it with something else but I think there's no way with javascript.

khalidali63
12-27-2002, 02:30 PM
Well There is a CSS command that will let you select between a print lay outs, Portraite or Landscape

this is how it will work

@page{
size:landscape;
margin:2cm;
}

though its in CSS2 W3C recomendations but I am not sure which browser implements it.

Khalid

andrada
12-30-2002, 06:31 AM
Thanks for this idea but unfortunately, neither Microsoft Internet Explorer or Netscape Navigator supported any of the @page rule features. See for more informatin http://www.webreference.com/authoring/languages/xhtml/beginning/chap13/3/3.html

Any idea ?
Regards

Charles
12-30-2002, 06:46 AM
Publish a "Printer Friendly" version in Portable Document Format (PDF) alongside your accessible, HTML version.

Leftcorner
12-30-2002, 11:01 AM
This signed script works great in IE only.

http://www.meadroid.com/scriptx/index.htm