posted 16 years ago
Hi All,
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
default tray only...
this was the code i used...
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(MediaSizeName.ISO_A4);
aset.add(MediaTray.MANUAL);
PrintService[] pservices = PrintServiceLookup.lookupPrintServices(
flavor, aset);
atlast i load the PDF and prnt the document.... but i was not able to
print it in the defined Media Tray.. it was from default tray..always..
can somebody help me out with this prob....