File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes printing in landscape Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "printing in landscape" Watch "printing in landscape" New topic
Author

printing in landscape

Max Habibi
town drunk
( and author)
Sheriff

Joined: Jun 27, 2002
Posts: 4118
Does anyone know how to print with landscape using javascript? Any help would be very appreciated.
Thanks,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4


Java Regular Expressions
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

(for what its worth)

Sigh... I once tried to figure this out. If only there was a browser that implemented CSS2

http://www.w3schools.com/css/css_ref_print.asp

Apparently there is also an IE/M$/DHTML specific way of doing this, but I've only seen references to "there is a way". Just thought I'd add another one.

Hmm.. according to this, they don't implement the size property of CSS2, even for IE6. But thank goodness we can change scroll-bar colours!
[ March 25, 2003: Message edited by: Mike Curwen ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617

Max, just turn your head 90 degrees looking at it sideways, and you have a report that is landscape.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: printing in landscape
 
Threads others viewed
Printing with JSP
Printing in Landscape
JasperReports: subreport with different orientation?
landscape mode
Effect of Stronger Rupee vs Dollar
MyEclipse, The Clear Choice