Page 1 of 1

Isprinter and bluetooth

PostPosted: Mon Oct 02, 2017 10:15 am
by Silvio.Falconi
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 ?

Re: Isprinter and bluetooth

PostPosted: Sat Oct 07, 2017 9:41 pm
by Otto
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

Re: Isprinter and bluetooth

PostPosted: Sun Oct 08, 2017 4:53 am
by Silvio.Falconi
YOU ARE SURE IT run ok on port COM (3,4) VIA BLUETOOTH ?

Re: Isprinter and bluetooth

PostPosted: Sun Oct 08, 2017 4:59 am
by Silvio.Falconi
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

Re: Isprinter and bluetooth

PostPosted: Sun Oct 08, 2017 5:10 am
by Silvio.Falconi
Dear Otto,

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

Image



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

Image

Re: Isprinter and bluetooth

PostPosted: Sun Oct 08, 2017 6:52 am
by Otto
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

Re: Isprinter and bluetooth

PostPosted: Mon Oct 09, 2017 8:04 am
by Silvio.Falconi
Image

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

Re: Isprinter and bluetooth

PostPosted: Mon Oct 09, 2017 9:57 am
by Otto
Silvio,
what value do you get.
Regards,
Otto

Re: Isprinter and bluetooth

PostPosted: Mon Oct 09, 2017 9:58 am
by Silvio.Falconi
allways zero same value