This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes PageFormat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "PageFormat" Watch "PageFormat" New topic
Author

PageFormat

Richard West
Ranch Hand

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

I am trying to print something but i need to ask something really so bare with me a little while

You know that for printing something using the java printable interface you would have to overide this method



Now if i wanted to print something in a certain format, i would this



Now here is problem, how to i know if the user has selected
OrientationRequested.REVERSE_PORTRAIT - (please note that this variable is from the JAVA javax.print.attribute.standard.OrientationRequested and the class that uses it is the PrintRequestAttribute from the JAVA Print Service.

As you guys can see that from the page format api, it does not have the variable REVERSE_PORTRAIT, so how do i test for it when the printable interface method that is to be overridded only calculates using the PageFormat class and not the print Attribute

I hope you guys are not confused by my question and am open to any suggestions

Any suggestions would be greatly appreciated

Thank You

Yours Sincerely

Richard West
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PageFormat
 
Similar Threads
Printing Question
Retries is Java printing?
Printing a swing component in Java (cutting it into multipla pages)
Print something in java.
How to print components ( printer )