Test to see if USB Printer is ready

Re: Test to see if USB Printer is ready

Postby sambomb » Mon May 25, 2015 11:16 am

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?
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Test to see if USB Printer is ready

Postby James Bott » Wed May 27, 2015 3:00 pm

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 )
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Test to see if USB Printer is ready

Postby James Bott » Wed May 27, 2015 3:03 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Test to see if USB Printer is ready

Postby nageswaragunupudi » Thu Jan 12, 2017 8:28 am

FiveWin, One line of code and it's done..


Well said !!!
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Test to see if USB Printer is ready

Postby Enrico Maria Giordano » Thu Jan 12, 2017 10:07 am

Yes, that's one of the feature that get us to fall in love with FWH! :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Test to see if USB Printer is ready

Postby cnavarro » Thu Jan 12, 2017 3:17 pm

Sure, there's nothing like programming at Fivewin
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 73 guests