B4i Library iSD BLE Printer

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
  • 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
    • Properties:
      • CodeTable
        es. printer.setCodeTable(Ecoding.Code_WPC1252)
        aftet this command calls SendBufferToPrinter
      • isConnect As BOOL [read only]
      • Spacing
        after setSpacing command calls SendBufferToPrinter
  • 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.
  • 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.
 

Attachments

  • iSD_BLE_Printer 0.25.zip
    256.9 KB · Views: 26
  • SampleBLE_Printer.zip
    111.6 KB · Views: 19
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Sample:

B4X:
Private Sub Application_Start (Nav As NavigationController)
    'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    NavControl.ShowPage(Page1)
    Page1.RootPanel.LoadLayout("Layout1")
  
    Ble.Initialize(Me,"Ble","UTF8","")
    ButtonSend.Visible=False
    ButtonImage.Visible=False
End Sub

METHOD
B4X:
Sub ButtonScan_Click
    Ble.ScanPrinter
    ButtonSend.Visible=False
    ButtonImage.Visible=False
End Sub

Sub ButtonSend_Click
    Ble.Writeline(ESC_POS.DoubleOn & "TEST OF PRINT")
End Sub


EVENT
B4X:
Sub Ble_PrinterFound(Name As String, ID As String)
    LabelInfo.Text=$"Fondi printer: ${Name}"$
    If Name<>"" Then Ble.connect(ID)
End Sub

Sub Ble_Connected(services As List)
    ButtonSend.Visible=True
    ButtonImage.Visible=True
End Sub

Sub Ble_Disconnected
    ButtonSend.Visible=False
    ButtonImage.Visible=False
End Sub
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Dear @jahswani ,
As long as I do not add the images will be free donation, there will not be a minimum limit. When I add the PrintBitmap method, contact me privately, as specified in post # 1
 

jahswant

Well-Known Member
Licensed User
Longtime User
What about this method ?
  • PrintBitmap (bmp As B4IBitmap*, Shift As Int) As NSString*
 

Star-Dust

Expert
Licensed User
Longtime User
What about this method ?
  • PrintBitmap (bmp As B4IBitmap*, Shift As Int) As NSString
    ******* Not yet active
Ignore it, it's not working yet
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Finally I managed to print in graphics with BLE. It is a simple chessboard, but that makes the idea of potential.
Even if it is a step forward I am still far from printing an image.

The BLE protocol is giving me a hard time, the packages must be small and the images sectioned to be transmitted .... we'll see if I succeed

upload_2019-3-13_10-1-19.png
 

jahswant

Well-Known Member
Licensed User
Longtime User
I tried the current version. It(s not compiling.
B4X:
B4i Version : 4.81
Analyse du code.    (0.00s)
Compilation du code.    (0.10s)
Compilation du code des layouts.    (0.01s)
Compilation du code du débogueur.    (3.02s)
Etablissement du projet Xcode    (0.63s)
Envoi de données au 'Remote Compiler'.    Error
B4i line: 48
Ble.Initialize(Me,\
no visible @interface for 'b4i_ble_printer' declares the selector '_initialize::::'

Out: Build settings from command line:
    ARCHS = x86_64
    CODE_SIGNING_REQUIRED = NO
    CONFIGURATION_BUILD_DIR = /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload
    PRODUCT_NAME = BLE Printer
    SDKROOT = iphonesimulator11.2

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies

Create product structure
/bin/mkdir -p /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload/BLE\ Printer.app

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_main.o B4iProject/b4i_main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/dh/pfp02c51141fx0vsd77svxwh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-generated-files.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-own-target-headers.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-all-target-headers.hmap -iquote /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-project-headers.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload/include -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/x86_64 -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_main.d --serialize-diagnostics /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_main.dia -c /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_main.m -o /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_main.o
/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_main.m:58:12: error: no visible @interface for 'b4i_ble_printer' declares the selector '_initialize::::'
[self._ble _initialize:self.bi :self :@"Ble" :@""];
 ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/main.o B4iProject/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/dh/pfp02c51141fx0vsd77svxwh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-generated-files.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-own-target-headers.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-all-target-headers.hmap -iquote /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-project-headers.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload/include -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/x86_64 -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/main.dia -c /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/B4iProject/main.m -o /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/main.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_layout1.o B4iProject/LS_layout1.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/dh/pfp02c51141fx0vsd77svxwh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-generated-files.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-own-target-headers.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-all-target-headers.hmap -iquote /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/BLE\ Printer-project-headers.hmap -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload/include -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/x86_64 -I/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_layout1.d --serialize-diagnostics /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_layout1.dia -c /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_layout1.m -o /Users/jahswant/Documents/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_layout1.o


Error: ** BUILD FAILED **


The following build commands failed:
    CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_main.o B4iProject/b4i_main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
 

Star-Dust

Expert
Licensed User
Longtime User
Frankly I don't understand what error it is. I'll do some tests
 

jahswant

Well-Known Member
Licensed User
Longtime User
It seems like it’s requesting different parameters on the initialize method. Please check. The method is also difficult in the .a file
 

Star-Dust

Expert
Licensed User
Longtime User
I used B4I 5.50 for this library. You are using 4.81, maybe it depends on this because it seems that it doesn't find the initialize method
 

MitchBu

Well-Known Member
Licensed User
Longtime User
Star-Dust, congratulations for your effort.

I am considering porting my present Android app to iOS with B4i, but I absolutely need quality printing.

Any idea of the resolution of the printed output ?

Have you completed bitmap printing ? At which practical resolution ?

You may want to add a "fit to paper" option in case the picture is too big.
 

Star-Dust

Expert
Licensed User
Longtime User
Star-Dust, congratulations for your effort.

I am considering porting my present Android app to iOS with B4i, but I absolutely need quality printing.

Any idea of the resolution of the printed output ?

Have you completed bitmap printing ? At which practical resolution ?

You may want to add a "fit to paper" option in case the picture is too big.
unfortunately at the moment I did not get a good press, but I suspended temporarily because I have a more urgent project. I will resume soon
 

Ali Alsaedi

Member
Licensed User
Longtime User
Hi ...
I tried the current version.
After running the app
it gives an error and exits the program
b4i version : 6.5
2020-07-08 13_14_30-shams - B4i.png,
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Hi ...
I tried the current version.
After running the app
it gives an error and exits the program
b4i version : 6.5
I just tested the example attached with B4I 6.80 beta 1, and compile it correctly.
I use the Hoster Builder server.

Report an error on line 12, where there is no instruction and does not affect compilation.
Make sure you've copied the necessary files to the build server. I updated the example, download it and try it.
 
Last edited:

Ali Alsaedi

Member
Licensed User
Longtime User
I tested the new version but it still gave an error

2020-07-08 19_33_22-SampleBLE_Printer - B4i.png
I do not use Hoster Builder server
I didn't understand what you meant when you said that the files should be on the server ?!!
 

Star-Dust

Expert
Licensed User
Longtime User
I tested the new version but it still gave an error

View attachment 96807
I do not use Hoster Builder server
I didn't understand what you meant when you said that the files should be on the server ?!!
The .a and .h files must be copied to the Libs Mac folder of the server in order to be able to compile

Usually when you compile a library locally, the server copies the .a and .i files to the Libs Mac folder and they are ready to be compiled within the App. (see here)
Those you download from the forum You must copy them instead.

PS. I don't use Mac but develop on Windows, so for more details on how to use the libraries better than ask the question on the forum
 
Top