B4A Library ThermalPrinterHelper

Discussion in 'Additional libraries, classes and official updates' started by somed3v3loper, Jul 1, 2019.

  1. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    https://github.com/barisatalay/thermalprinterhelper
    I don't have a thermal printer , I am just wrapping blindly :D
    refer to this link to know more about how to use this library

    bluetoothhelper

    Author: SMM
    Version: 0.01
    • BluetoothProvider
      • Events:
        • _onbegin
        • _onerror (errorMessage As String)
        • _onerrorimportant (errorMessage As String)
        • _onsuccessful
      • Fields:
        • DEFAULT_SETTINGS As Byte()
        • FEED_LINE As Byte()
        • FEED_LINE_2 As Byte()
      • Functions:
        • connect
        • Initialize (EventName As String)
        • IsInitialized As Boolean
        • prepareTestData As String
        • printByteArray (data As Byte())
        • printImageText (base64image As String)
        • printText (text As String)
        • showPrinterListActivity (arg As Boolean)
      • Properties:
        • DeviceAddress As String [write only]


    add these lines to your manifest file

    Code:
    AddApplicationText(<activity android:name="com.atalay.bluetoothhelper.View.PrinterList.PrinterListActivity"/>)
    AddApplicationText(<
    activity android:name="com.karumi.dexter.DexterActivity"/>)
    AddPermission(android.permission.ACCESS_FINE_LOCATION)
    AddPermission(android.permission.BLUETOOTH)
    AddPermission(android.permission.BLUETOOTH_ADMIN)

    sorry no screenshots
    If you enjoyed this wrap , please consider a donation :)
     

    Attached Files:

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice