FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Isprinter and bluetooth
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Isprinter and bluetooth
Posted: Mon Oct 02, 2017 10:15 AM

for bluetooth printer the function isprinter not run

I use the normal driver windows to print . I use printesc function to set the commands of bluettooth primter custom My3A

I think the error must be check by the drive

how I resolve ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Isprinter and bluetooth
Posted: Sat Oct 07, 2017 09:41 PM

Hello Silvio,
does PrnStatus work for you.
Best regards,
Otto

define PRINTER_STATUS_PENDING_DELETION 4

define PRINTER_STATUS_PAPER_JAM 8

define PRINTER_STATUS_PAPER_OUT 16

define PRINTER_STATUS_MANUAL_FEED 32

define PRINTER_STATUS_PAPER_PROBLEM 64

define PRINTER_STATUS_OFFLINE 128

define PRINTER_STATUS_IO_ACTIVE 256

define PRINTER_STATUS_BUSY 512

define PRINTER_STATUS_PRINTING 1024

define PRINTER_STATUS_OUTPUT_BIN_FULL 2048

define PRINTER_STATUS_NOT_AVAILABLE 4096

define PRINTER_STATUS_WAITING 8192

define PRINTER_STATUS_PROCESSING 16384

define PRINTER_STATUS_INITIALIZING 32768

define PRINTER_STATUS_WARMING_UP 65536

define PRINTER_STATUS_TONER_LOW 131072

define PRINTER_STATUS_NO_TONER 262144

define PRINTER_STATUS_PAGE_PUNT 524288

define PRINTER_STATUS_USER_INTERVENTION 1048576

define PRINTER_STATUS_OUT_OF_MEMORY 2097152

define PRINTER_STATUS_DOOR_OPEN 4194304

define PRINTER_STATUS_SERVER_UNKNOWN 8388608

define PRINTER_STATUS_POWER_SAVE 16777216

function Main()

local nStatus := PrnStatus( "Kyocera FS-C5100DN" )

MsgInfo( nStatus )

return nil

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Isprinter and bluetooth
Posted: Sun Oct 08, 2017 04:53 AM

YOU ARE SURE IT run ok on port COM (3,4) VIA BLUETOOTH ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Isprinter and bluetooth
Posted: Sun Oct 08, 2017 04:59 AM
AND THEN i USE the printer class oPrn

when I'm printing the ticket I can see before these ?

1. there is no enought paper to print the ticket

2. when the printer is printing with method say is blocked , where it is blocked , I must re print the ticket ?

it is no easy to make
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Isprinter and bluetooth
Posted: Sun Oct 08, 2017 05:10 AM
Dear Otto,

I have the custom My3a on table . It is open and I printed now a ticket.it is via BLUETOOTH





then I tried your test and see this ... return me a value 0 ???????

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Isprinter and bluetooth
Posted: Sun Oct 08, 2017 06:52 AM

Silvio,
O should be ok.
Try what happens if the printer is off line.
Paper must be controlled by your software.
Eg one print out is 10cm. You have to add a counter.
Best regards,
Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Isprinter and bluetooth
Posted: Mon Oct 09, 2017 08:04 AM


the printer is on
the printer have a big roll of paper
the printer is near to my pc
and I have print a ticket now

then test with prnstatus.... not run
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Isprinter and bluetooth
Posted: Mon Oct 09, 2017 09:57 AM

Silvio,
what value do you get.
Regards,
Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Isprinter and bluetooth
Posted: Mon Oct 09, 2017 09:58 AM

allways zero same value

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion