How to get model of a printer in javax.print?
I use Windows XP Professional. How can i get model of printer in package javax.print.* ? For examples: HP LaserJet M1319f MFP, HP LaserJet 3050 Series PCL 6, ...
Here is how i get print services
PrintService[] services =
PrintServiceLookup.lookupPrintServices(DocFlavor.SERVICE_FORMATTED.PRINTABL开发者_开发百科E, null);
Thank you!,
Minhbt.
On every PrintService object you can call getName() to receive the printers name.
精彩评论