Hi, I have been using your library, and sometimes prints perfect the things that I put in the buffer and sometime does not print with the same android machine (its random issue) , routine, and printer , is there anything that I am doing wrong ?????
Sometimes if the buffer has been overfilled (for example with large images or more images) the bluetooth is not able to transmit correctly.Hi, I have been using your library, and sometimes prints perfect the things that I put in the buffer and sometime does not print with the same android machine (its random issue) , routine, and printer , is there anything that I am doing wrong ?????
Sub Printer_ConnectedToPrint (Success As Boolean)
Dim borrado As String
' When is connect
If Success Then
Printer.ClearBuffer
Printer.AddBuffer_WriteLine(Main.RComercio)
Printer.AddBuffer_WriteLine(Main.RTienda)
Printer.AddBuffer_WriteLine(Main.RUbica)
Printer.SendBufferToPrinter
Printer.ClearBuffer
Printer.AddBuffer_WriteLine(" ")
Printer.AddBuffer_WriteLine(RFecha)
Printer.SendBufferToPrinter
Printer.ClearBuffer
Printer.AddBuffer_BarCode(Right("000000"&NumberFormat(FOLIOPEDIDO,0,0),7))
Printer.SendBufferToPrinter
Printer.ClearBuffer
Printer.AddBuffer_WriteLine("NOTA : "&Right("000000"&NumberFormat(FOLIOPEDIDO,0,0),7))
Printer.AddBuffer_WriteLine("TOTAL : $ "&NumberFormat2(ptotal, 0, 2, 2, True))
Printer.SendBufferToPrinter
Printer.ClearBuffer
Printer.AddBuffer_WriteLine(" ")
Printer.AddBuffer_WriteLine(" ")
Printer.SendBufferToPrinter
Printer.ClearBuffer
Printer.Close
end if
If Success Then
Printer.ClearBuffer
Printer.AddBuffer_WriteLine(Main.RComercio)
Printer.AddBuffer_WriteLine(Main.RTienda)
Printer.AddBuffer_WriteLine(Main.RUbica)
Printer.SendBufferToPrinter
Printer.AddBuffer_WriteLine(" ")
Printer.AddBuffer_WriteLine(RFecha)
Printer.SendBufferToPrinter
Printer.AddBuffer_BarCode(Right("000000"&NumberFormat(FOLIOPEDIDO,0,0),7))
Printer.SendBufferToPrinter
Sleep(100)
Printer.AddBuffer_WriteLine("NOTA : "&Right("000000"&NumberFormat(FOLIOPEDIDO,0,0),7))
Printer.AddBuffer_WriteLine("TOTAL : $ "&NumberFormat2(ptotal, 0, 2, 2, True))
Printer.SendBufferToPrinter
Sleep(100)
Printer.AddBuffer_WriteLine(" ")
Printer.AddBuffer_WriteLine(" ")
Printer.FlushAndClose
end if
No, you cannot use to check the status.Hi :
How can I use the BluetoothIsDisabled event, for checking the status , because if it`s OFF when the program tries to connect to printer sends error java.io.IOException?
There are many ESC_POS commands, I have included only a few, of which I was sure they were compatible on all models.also , is there any field in ESC_POS that change to small font instead of the normal (standard) font ?
thanks in advanced.
Dim SampleNewCommand as String = Chr (27) & "!" & Chr (8)