I am happy to present my library to print with Iphone (and iPad) with Bluetooh (BLE). At the moment I can not print the images, but I'm working on it. If you want to have the activation code (Freeing all the functions) contact me in private.
(Herefor B4J, Here for B4A)
This version requires an activation code. If you do not have a code then it will work in DEMO mode and you will only be able to print every 4 minutes.
iSD_BLE_Printer
Author: Star-Dust
Version: 0.02
(Herefor B4J, Here for B4A)
This version requires an activation code. If you do not have a code then it will work in DEMO mode and you will only be able to print every 4 minutes.
iSD_BLE_Printer
Author: Star-Dust
Version: 0.02
- BLE_Printer
- Events:
- Connected (services As List)
- Disconnected
- PrinterFound (Name As String, ID As String)
- 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)) - Class_Globals As NSString*
- Connect (ID As NSString*) As NSString*
- getisConcect As BOOL
- 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*
- PrintBitmap2 (bmp As B4IBitmap*, Shift As Int) As NSString*
******* Not yet active - PrintBitmap (bmp As B4IBitmap*, dotsAtTheLeft As Int) As NSString*
******* Not yet active - ScanPrinter As NSString*
- 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 - IsInitialized As BOOL
Verifica se l'oggetto sia stato inizializzato.
- AddTab (ArrayTab As Int()) As NSString*
- Properties:
- isConcect As BOOL [read only]
- 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_DoubleWideHight As NSString*
- FontA_Normal As NSString*
- FontB_Bold As NSString*
- FontB_DoubleHight As NSString*
- FontB_DoubleWide As NSString*
- FontB_DoubleWideHight As NSString*
- FontB_Normal As NSString*
- InitializePrinter As NSString*
- NoUnderline As NSString*
- Underline1 As NSString*
- Underline2 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:
- 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
-
211 KB Views: 17
-
111.4 KB Views: 5
Last edited: