Selecting output bin
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Selecting output bin  XML
Forum Index -> ICEpdf General
Author Message
martin.gilday

Joined: 09/03/2010 00:00:00
Messages: 4
Offline


Is there a way to choose the output bin/tray when using PrintHelper?

Thanks,
Martin.
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


In theory it is possible but will depend on how will Java Print services supports your printer. The print property javax.print.attribute.standard.MediaTray can be added to the PrintHelper HashDocAttributeSet docAttributeSet isntance variable at construction time or via the setupPrinterServices call. The MediaTray attribute is mentioned here, http://java.sun.com/j2se/1.5.0/docs/guide/jps/spec/JPSTOC.fm.html

The example application ./printservices/PrintServices.java can be used to test the supported job properties for the selected printer. This might be a good test for you to see if your printer supports tray selection.
[Email]
martin.gilday

Joined: 09/03/2010 00:00:00
Messages: 4
Offline


Patrick,

I had found that but looking at the Javadoc it suggests it is for input trays, not output trays. The static options on it are for choosing the envelope trays or manual feed etc.

Martin.
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team