|
@@ -48,7 +48,7 @@ public class ZplPrinter {
|
|
|
PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
|
|
|
if (services != null && services.length > 0) {
|
|
|
for (PrintService service : services) {
|
|
|
- if (printerURI.equals(service.getName())) {
|
|
|
+ if (service.getName().equals(printerURI)) {
|
|
|
printService = service;
|
|
|
break;
|
|
|
}
|
|
@@ -240,7 +240,7 @@ public class ZplPrinter {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- ZplPrinter p = new ZplPrinter("\\192.168.11.247\\ZDesigner ZT210-200dpi ZPL");
|
|
|
+ ZplPrinter p = new ZplPrinter("\\\\192.168.11.247\\ZDesigner ZT210-200dpi ZPL");
|
|
|
p.printBarcode(p, "D21066000101");
|
|
|
|
|
|
}
|