Serial 1.30 is last versionyes! Version 1.26
ConnectToPrint (Success As Boolean)
ResetPreViewWidth (NewWidth as int)
Printer.AddBuffer_ArrayByte(ESC_POS.InitializePrinter.GetBytes("UTF8"))
'or
Printer.AddBuffer_Write(ESC_POS.InitializePrinter)
I hv sent donation. Kindly send me bt printer library(No WRAP, No Java Only B4A)
BT_Printer library allows you to print text and image to a bluetooth thermal printers
To print the QR CODES with your BT thermal printer you can create an image containing the QR code with the help of the @Erel library (here) or can use library of @Johan Schoeman (here)
Required: B4A 8+ and Serial Library 1.30+ (here)
To try print with the demo version you can only use the FlushAndClose command which lasts 7 days and then disables.
The full version of the library will be issued to those making a donation. In the donation indicate the library you want and your NickName
View attachment 71755 View attachment 71781
SD_BT_Printer
Author: Star-Dust
Version: 0.13
- BT_Printer
Note: Android 6+ add on manifest
AddPermission(android.permission.ACCESS_COARSE_LOCATION)
- Events:
- BluetoothIsDisabled
- ConnectedToPrint (Success As Boolean)
- DisconnectToPrint (Mac As String)
- DiscoveryFinished
- DiscoveryNewPrinter (Print As NameAndMac, DeviceClass As Int)
- DiscoveryNoDeviceFound
- ErrorDiscovery
- ListPrinterAssociated (ListNameAndMac As List)
- PrinterSelected (Mac As String)
- SendTerminated
- Const:
- Const_AUDIO_VIDEO As Int
- Const_COMPUTER As Int
- Const_HEALTH As Int
- Const_IMAGING As Int
- Const_MISC As Int
- Const_NETWORKING As Int
- Const_PERIPHERAL As Int
- Const_PHONE As Int
- Const_TOY As Int
- Const_UNCATEGORIZED As Int
- Const_WEARABLE As Int
- Functions:
- AddBuffer_ArrayByte (B As Byte()) As String
- AddBuffer_BarCode (Code As String) As String
- AddBuffer_Bitmap (Bmp As Bitmap, ShiftLeft As Int) As String
- AddBuffer_BitmapAlternativeCoding (Bmp As Bitmap) As String
- AddBuffer_List_Write (list As List) As String
- AddBuffer_List_WriteLine (list As List) As String
- AddBuffer_Tab (ArrayTab As Int()) As String
- AddBuffer_Write (Text As String) As String
- AddBuffer_WriteLine (Text As String) As String
- Class_Globals As String
- ClearBuffer As String
- Close As String
- Connected As Boolean
- flushAllAndClose
- Initialize (CallBack As Object, EventName As String, EncodingType As String) As String
Initializes the object. You can add parameters to this method if needed.- IsInitialized As Boolean
Verifica se l'oggetto sia stato inizializzato.- Preview As Bitmap
- ResetPreViewWidth(NewWidth As Int) As String
- SearchNewPrinter As String
select --------------------------------------------- SelectFromAssociatedPrinter As String
- SelectFromMac (Mac As String) As String
- SendBufferToPrinter
- ESC_POS
Code module
Subs in this code module will be accessible from all modules.
- Fields:
- BoldOff As String
- BoldOn As String
- DoubleOff As String
- DoubleOn As String
- FontA_Bold As String
- FontA_DoubleHight As String
- FontA_DoubleWide As String
- FontA_DoubleWideHight As String
- FontA_Normal As String
- FontB_Bold As String
- FontB_DoubleHight As String
- FontB_DoubleWide As String
- FontB_DoubleWideHight As String
- FontB_Normal As String
- InitializePrinter As String
- Functions:
- Process_Globals As String
- Encoding
Code module
Subs in this code module will be accessible from all modules.
- Fields:
- ISO8859 As String
- UTF8 As String
- Windows1252 As String
- Functions:
- Process_Globals As String
sir, i hv sent donation for bt library.(No WRAP, No Java Only B4A)
BT_Printer library allows you to print text and image to a bluetooth thermal printers
To print the QR CODES with your BT thermal printer you can create an image containing the QR code with the help of the @Erel library (here) or can use library of @Johan Schoeman (here)
Required: B4A 8+ and Serial Library 1.30+ (here)
To try print with the demo version you can only use the FlushAndClose command which lasts 7 days and then disables.
The full version of the library will be issued to those making a donation. In the donation indicate the library you want and your NickName
View attachment 71755 View attachment 71781
SD_BT_Printer
Author: Star-Dust
Version: 0.13
- BT_Printer
Note: Android 6+ add on manifest
AddPermission(android.permission.ACCESS_COARSE_LOCATION)
- Events:
- BluetoothIsDisabled
- ConnectedToPrint (Success As Boolean)
- DisconnectToPrint (Mac As String)
- DiscoveryFinished
- DiscoveryNewPrinter (Print As NameAndMac, DeviceClass As Int)
- DiscoveryNoDeviceFound
- ErrorDiscovery
- ListPrinterAssociated (ListNameAndMac As List)
- PrinterSelected (Mac As String)
- SendTerminated
- Const:
- Const_AUDIO_VIDEO As Int
- Const_COMPUTER As Int
- Const_HEALTH As Int
- Const_IMAGING As Int
- Const_MISC As Int
- Const_NETWORKING As Int
- Const_PERIPHERAL As Int
- Const_PHONE As Int
- Const_TOY As Int
- Const_UNCATEGORIZED As Int
- Const_WEARABLE As Int
- Functions:
- AddBuffer_ArrayByte (B As Byte()) As String
- AddBuffer_BarCode (Code As String) As String
- AddBuffer_Bitmap (Bmp As Bitmap, ShiftLeft As Int) As String
- AddBuffer_BitmapAlternativeCoding (Bmp As Bitmap) As String
- AddBuffer_List_Write (list As List) As String
- AddBuffer_List_WriteLine (list As List) As String
- AddBuffer_Tab (ArrayTab As Int()) As String
- AddBuffer_Write (Text As String) As String
- AddBuffer_WriteLine (Text As String) As String
- Class_Globals As String
- ClearBuffer As String
- Close As String
- Connected As Boolean
- flushAllAndClose
- Initialize (CallBack As Object, EventName As String, EncodingType As String) As String
Initializes the object. You can add parameters to this method if needed.- IsInitialized As Boolean
Verifica se l'oggetto sia stato inizializzato.- Preview As Bitmap
- ResetPreViewWidth(NewWidth As Int) As String
- SearchNewPrinter As String
select --------------------------------------------- SelectFromAssociatedPrinter As String
- SelectFromMac (Mac As String) As String
- SendBufferToPrinter
- ESC_POS
Code module
Subs in this code module will be accessible from all modules.
- Fields:
- BoldOff As String
- BoldOn As String
- DoubleOff As String
- DoubleOn As String
- FontA_Bold As String
- FontA_DoubleHight As String
- FontA_DoubleWide As String
- FontA_DoubleWideHight As String
- FontA_Normal As String
- FontB_Bold As String
- FontB_DoubleHight As String
- FontB_DoubleWide As String
- FontB_DoubleWideHight As String
- FontB_Normal As String
- InitializePrinter As String
- Functions:
- Process_Globals As String
- Encoding
Code module
Subs in this code module will be accessible from all modules.
- Fields:
- ISO8859 As String
- UTF8 As String
- Windows1252 As String
- Functions:
- Process_Globals As String