I am happy to present my library to print with Iphone (and iPad) with Bluetooh (BLE). Now I can print the images. If you want to have the activation code (Freeing all the functions) contact me in private.
(For B4J versione see Here, for B4A versione see Here, for ZEBRA printer Here)
This version requires an activation code. If you don't have a code, it will work in DEMO mode and you can print for just one minute every 4 minutes.
iSD_BLE_Printer
Author: Star-Dust
Version: 0.25
(For B4J versione see Here, for B4A versione see Here, for ZEBRA printer Here)
This version requires an activation code. If you don't have a code, it will work in DEMO mode and you can print for just one minute every 4 minutes.
iSD_BLE_Printer
Author: Star-Dust
Version: 0.25
- BLE_Printer
- Events:
- Connected (services As List)
- Disconnected
- ImagePrintingCompleted
- PrinterFound (Name As String, ID As String)
- WriteComplete (Characteristic As String, Success As Boolean)
- Fields:
- CharatteristicName As NSString*
- ServiceName As NSString*
- Functions:
- AddTab (ArrayTab As Int()) As NSString*
Add Tab
eg. PrinterBLE.AddTab(Array As Byte(100,150,121)) - CenterJustify As NSString*
after this command calls SendBufferToPrinter - Class_Globals As NSString*
- Connect (ID As NSString*) As NSString*
- Initialize (ba As B4I*, CallBack As NSObject*, EventName As NSString*, EncodingType As NSString*, CodeActivation As NSString*) As NSString*
Initializes the object. You can add parameters to this method if needed. - InitializePrinter As NSString*
- IsInitialized As BOOL
Verifica se l'oggetto sia stato inizializzato. - LeftJustify As NSString*
after this command calls SendBufferToPrinter - PrintBitmap (bmp As B4IBitmap*)
- RightJustify As NSString*
after this command calls SendBufferToPrinter - ScanPrinter As NSString*
- SetCodePage (Code As Unsigned char) As NSString*
es. Printer.SetCodePage(06) for umlauts char - Write (Text As NSString*) As NSString*
Write (Print) a Text - Write_ArrayByte (B As Unsigned char()) As NSString*
Write (Send to Printer) a Array of Byte
eg. PrinterBLE.Write_ArrayByte(Array As Byte(0x1D,150,23))
eg. PrinterBLE.Write_ArrayByte("Text".GetBytes("UTF8")) - WriteBarCode (Code As NSString*) As NSString*
- WriteLine (Text As NSString*) As NSString*
Write (Print) a Text + CHLF - WriteList (list As B4IList*) As NSString*
Write (Print) a List
- AddTab (ArrayTab As Int()) As NSString*
- Properties:
- CodeTable
es. printer.setCodeTable(Ecoding.Code_WPC1252)
aftet this command calls SendBufferToPrinter - isConnect As BOOL [read only]
- Spacing
after setSpacing command calls SendBufferToPrinter
- CodeTable
- Events:
- ESC_POS
- Fields:
- BoldOff As NSString*
- BoldOn As NSString*
- DoubleOff As NSString*
- DoubleOn As NSString*
- FontA_Bold As NSString*
- FontA_DoubleHight As NSString*
- FontA_DoubleWide As NSString*
- FontA_DoubleWideHeight As NSString*
- FontA_Normal As NSString*
- FontB_Bold As NSString*
- FontB_DoubleHeight As NSString*
- FontB_DoubleWide As NSString*
- FontB_DoubleWideHeight As NSString*
- FontB_Normal As NSString*
- Horizzontal As NSString*
- InitializePrinter As NSString*
- NoUnderline As NSString*
- QueryErrorCauses As NSString*
- QueryOfflineCauses As NSString*
- QueryPaperStatus As NSString*
- QueryPrinterStatus As NSString*
- Underline1 As NSString*
- Underline2 As NSString*
- Vertical As NSString*
- Functions:
- Process_Globals As NSString*
Code module
Subs in this code module will be accessible from all modules.
- Process_Globals As NSString*
- Fields:
- Encoding
- Fields:
- Chinese As NSString*
- ChineseS As NSString*
- Code_PC437 As Int
- Code_PC850 As Int
- Code_PC857 As Int
- Code_PC858 As Int
- Code_PC860 As Int
- Code_PC863 As Int
- Code_WPC1252 As Int
- DOS_Latin_1 As NSString*
- IBM_PC As NSString*
- ISO8859 As NSString*
- UTF8 As NSString*
- Windows1252 As NSString*
- Functions:
- Process_Globals As NSString*
Code module
Subs in this code module will be accessible from all modules.
- Process_Globals As NSString*
- Fields:
Attachments
Last edited: