FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Test to see if Bluetooth Printer is ready
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Test to see if Bluetooth Printer is ready
Posted: Fri Sep 29, 2017 08: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 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: 162
Joined: Wed Feb 22, 2017 02:19 AM
Re: Test to see if Bluetooth Printer is ready
Posted: Fri Dec 08, 2017 03: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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Test to see if Bluetooth Printer is ready
Posted: Fri Dec 08, 2017 01:41 PM
Maybe:


Code (fw): Select all Collapse
   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 (fw): Select all Collapse
// <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30732&start=15">viewtopic.php?f=3&t=30732&start=15</a><!-- l -->
// 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Test to see if Bluetooth Printer is ready
Posted: 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 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