aobag-dev / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Delay in finding in findprinter function #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I have already posted about the delay while printing. I have checked the code 
and found the findprinter function takes lot of time and one more thing it 
takes time in case of offline printers connected to that particular machine(Eg 
network printers, which(machine) is not switch on). How can we solve the issue

jZebra1.3.5, WindowsXP2 , Firefox

Original issue reported on code.google.com by renjithn...@gmail.com on 4 Jun 2012 at 4:43

GoogleCodeExporter commented 8 years ago
Hi tres i need a solution for this.

Original comment by renjithn...@gmail.com on 12 Jun 2012 at 5:00

GoogleCodeExporter commented 8 years ago
I am unable to reproduce this error on my end.  Can you provide specific 
details about the types printers you have attached?  How many, etc?

-Tres

Original comment by tres.fin...@gmail.com on 12 Jun 2012 at 2:34

GoogleCodeExporter commented 8 years ago
Hi Tres
 6 printers are in my machine one is local priter which is a dotmatrix printer and 3 are virtual printers like "Microsoft Office Document Image Writer" and two networked printers which are dotmatrix. if one of the network printer is offline this issue occurs.
OS: Windows XP2

Original comment by renjithn...@gmail.com on 13 Jun 2012 at 5:12

GoogleCodeExporter commented 8 years ago
The code that cycles through printers just gets the printer name.  It's unusual 
that this step would be so slow.  The only way I can think to circumvent it is 
to use the default printer by calling "applet.findPrinter();".  This should 
skip the logic that searches through all the printers, but would require the 
printer to be the default printer on that workstation.

The only other solution I can think up is to force a timeout on each printer 
request.  This would require additional threading and some default 
wait()/timeout values.  This is much more work.  If this "timeout" is desired, 
please email me tres.finocchiaro@gmail.com and I'll be happy prepare a quote.

-Tres

Original comment by tres.fin...@gmail.com on 22 Aug 2012 at 5:57