开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜