Test to see if Bluetooth Printer is ready

Test to see if Bluetooth Printer is ready

Postby Silvio.Falconi » Fri Sep 29, 2017 8:36 pm

I made before the command PRINTER ::oPrn TO ::cPrinter

IF !IsPrinter()
Tone(4000)
Tone(3000)
MsgInfo("Verificare la stampante...","Attenzione!")
Endif


BUT this control not run !!!! HOW resolve it ?


But My problem also is another more important

I use this printer : http://www.megatron.fr/imprimantes/mmob ... nter_e.php

I not Know how many metres have the paper roll ..

Do I print a ticket and start printing the header of ticket and end the paper,,,what I can do?

If I insert a command to reprint the ticket this could be a dangerous thing because it could be reprinted

of the ticket to help the driver (thief) make copies of the tickets and travel

customers with copies of bills and rubbing some of the money

Any solution ?

How I can resolve ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: Test to see if Bluetooth Printer is ready

Postby Busmatic_wpb » Fri Dec 08, 2017 3:06 am

Estimado Silvio
Mira tengo 10 años de trabajar con impresoras termicas y la mayoria del tiempo que una impresion no sale por problemas de agotarse el papel este queda en el spooler de la impresora. Cuando pone el papel de nuevo esta vuelve a imprimir ya sea todo el tiquete si ocurrio o parte del que falto.

Actuamente estoy en desarrollo de un sistema de tablet abordo de autobus con impresora termicas USB, Lector sin contacto ,GPS y tambien blue tooth y se comporta igual,
Estamos en construccion
www.busmaticcr.com
Una abrazo
Regards.
S.I.T.U.
Sistemas Inteligentes de transporte urbano
http://www.situcr.com
oscarchacon@Situcr.com
Desarrollos BA4/B4j androide
User avatar
Busmatic_wpb
 
Posts: 162
Joined: Wed Feb 22, 2017 2:19 am

Re: Test to see if Bluetooth Printer is ready

Postby karinha » Fri Dec 08, 2017 1:41 pm

Maybe:


Code: Select all  Expand view

   PRINTER oPrn PREVIEW MODAL // PARA TESTAR A IMPRESSORA ANTES DE IMPRIMIR

   IF EMPTY( oPrn:hDC )
      MsgInfo( "ALGUMA COISA OCORREU DE ERRADO COM A IMPRESSORA.", "LIGUE A IMPRESSORA." )
      oPrn:End()
      RETURN( .F. )
   ENDIF

   oPrn:End()
 


.OR.

Code: Select all  Expand view

// viewtopic.php?f=3&t=30732&start=15
// Aqui está uma função simples para verificar se a impressora está pronta
FUNCTION isPrinterReady( oPrn )

RETURN !Empty( oPrn:hDC )
 
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7813
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Test to see if Bluetooth Printer is ready

Postby Silvio.Falconi » Sat Dec 09, 2017 11:16 pm

NOT RUN
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 88 guests