I am looking for a Java solution that will enable me to have control over the printer tray to which my application prints. Thanks.
Joined: Apr 21, 2005
Look in the packages javax.print and javax.print.attribute. Perhaps the class javax.print.attribute.standard.MediaTray can help you here. It does not let you specify a tray per se, but rather a tray that contains a particular type of media (e.g. A4 paper).
Joined: Jun 17, 2007
I have the same problem.. i tried selecting a tray from a printer...
using MediaTray .. was not able to do so.. the print was from a