Hello!
I have problem detecting when printer is not found if you change printer between prints.
Steps to reproduce :
1. call findPrinter('HP') (printer HP exists)
2. when done finding jzebraDoneFinding() is called and I check if exception is null and printer is not null then its OK
3. then I call findPrinter('xxxx') and there is no such printer installed on machine
4. when done finding jzebraDoneFinding() is called and there is no exception but printer is still there but it is the old one
Is there a way to detetct that second printer is not found?
Environment :
jZebra 1.4.5
FF 17.0.1.
Java Plug-in 10.10.2.18
JRE version 1.7.0_10-b18 Java HotSpot(TM) Client VM
Here is the log from console - there is a warning in log, but I don't know how to use it.
jan 07, 2013 9:34:50 AM jzebra.LogIt log
INFO: jZebra 1.4.5
jan 07, 2013 9:34:50 AM jzebra.LogIt log
INFO: ===== JAVASCRIPT LISTENER THREAD STARTED =====
jan 07, 2013 9:34:59 AM jzebra.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
jan 07, 2013 9:35:00 AM jzebra.LogIt log
INFO: Found 5 attached printers.
jan 07, 2013 9:35:00 AM jzebra.LogIt log
INFO: Printer specified: \Qhp\E
jan 07, 2013 9:35:00 AM jzebra.LogIt log
INFO: Printer name match: \\ZOKI-PC\HP Photosmart C4100 series
jan 07, 2013 9:35:00 AM jzebra.LogIt log
INFO: Using best match: \\ZOKI-PC\HP Photosmart C4100 series
jan 07, 2013 9:35:06 AM jzebra.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
jan 07, 2013 9:35:06 AM jzebra.LogIt log
INFO: Found 5 attached printers.
jan 07, 2013 9:35:06 AM jzebra.LogIt log
INFO: Printer specified: \Qxxxx\E
jan 07, 2013 9:35:06 AM jzebra.LogIt log
WARNING: Printer not found: \Qxxxx\E
jan 07, 2013 9:35:06 AM jzebra.LogIt log
WARNING: Ignoring null PrintService
Best regards,
Zoran