Page 2 of 2

Re: Test to see if USB Printer is ready

PostPosted: Mon May 25, 2015 11:16 am
by sambomb
Maybe this is the reason, with Spooler active Windows send the file to a buffer instead of direct to the printer, can you try to disable spooler?

Re: Test to see if USB Printer is ready

PostPosted: Wed May 27, 2015 3:00 pm
by James Bott
Rick,

I found this in my notes. I didn't test it.

James

--------------------------------------
Here is a simple function to check to see if the printer is ready.

Code: Select all  Expand view
  function isPrinterReady(oPrn)
   return ! empty( oPrn:hDC )

Re: Test to see if USB Printer is ready

PostPosted: Wed May 27, 2015 3:03 pm
by James Bott
Also note that if your printer is the currently active one (in the app), then the app needs to restore the default printer before testing if it is ready.

James

Re: Test to see if USB Printer is ready

PostPosted: Thu Jan 12, 2017 8:28 am
by nageswaragunupudi
FiveWin, One line of code and it's done..


Well said !!!

Re: Test to see if USB Printer is ready

PostPosted: Thu Jan 12, 2017 10:07 am
by Enrico Maria Giordano
Yes, that's one of the feature that get us to fall in love with FWH! :-)

EMG

Re: Test to see if USB Printer is ready

PostPosted: Thu Jan 12, 2017 3:17 pm
by cnavarro
Sure, there's nothing like programming at Fivewin