FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Test to see if USB Printer is ready
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Test to see if USB Printer is ready
Posted: 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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Test to see if USB Printer is ready
Posted: Wed May 27, 2015 03: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.

   
   function isPrinterReady(oPrn)
   return ! empty( oPrn:hDC )
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Test to see if USB Printer is ready
Posted: Wed May 27, 2015 03: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Test to see if USB Printer is ready
Posted: Thu Jan 12, 2017 08:28 AM
FiveWin, One line of code and it's done..


Well said !!!
Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Test to see if USB Printer is ready
Posted: Thu Jan 12, 2017 10:07 AM

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

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Test to see if USB Printer is ready
Posted: Thu Jan 12, 2017 03: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

Continue the discussion