How do I get printer or print service name?
Category: javax.print, viewed: 3K time(s).
This example show you how to get the printer or print service installed on your machine. To get the installed services we can use PrinterJob.lookupPrintServices() method call. This method return an array of PrintService objects. After that call PrintService.getName() method to get the print service name.
The program will print the installed print service on your machine.
Name = Send To OneNote 2007 Name = Microsoft XPS Document Writer Name = HP LaserJet P1005 Name = Epson LX-300+ Name = EPSON LQ-300+ ESC/P 2 Name = CutePDF Writer
More examples on javax.print
|
|