aspose file tools*
The moose likes Java in General and the fly likes Landscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Landscape" Watch "Landscape" New topic
Author

Landscape

Richard West
Ranch Hand

Joined: Jan 07, 2005
Posts: 127
Hi everyone,

I am trying to print a landscape paper using J2SE SDK 1.5.0_06 with the native print dialog(windows in my case). When i print in portrait the printout is perfect but when print in landscape the printout simpley does not rotate but just shifts downwards.

The thing is that this problem does not occur in 1.4, but only in 1.5. Could this be a bug or have i done something wrong in the code.

Here is a very simple compilable example using one of sun's examples. As you can see setting the pageformat to portrait the printout is correct but when seeting the page format to landscape it does not rotate but simple shift downwards.

Here is the program



When i run the above program in 1.4 there are no problems, could this be a bug in 1.5.0_06?

Any help i greatly appreciated

Thank You

Yours Sincerely

Richard West
[ July 13, 2006: Message edited by: Richard West ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Landscape