rechercher un model d'imprimante
Bonsoir
j'ai pu récupérer la liste d'imprimante de mon PC
mais je veux quand je clique sur le bouton OK , rechercher l'imprimante thermique et lancer l'impression
Code:
1 2 3 4 5 6 7 8 9
|
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
PrintService printService1[] = PrintServiceLookup.lookupPrintServices(
flavor, pras);
for (int i = 0; i < printService1.length; i++)
{
System.out.println(printService1[i].getDefaultAttributeValue(PrinterMakeAndModel.class));
} |
Cdt