java - How to get model of a printer in javax.print? -
I use Windows XP Professional I package javax.print. * How do I get a printer model? For example: HP LaserJet M1311FMFP, HP LaserJet 3050 Series PCL6, ...
Here I get a print service
PrintService [] services = PrintServiceLookup.lookupPrintServices (DocFlavor.SERVICE_FORMATTED.PRINTABLE, zero);
On each print service object, you can call getName () to get the printer name.
Comments
Post a Comment