Invoice Bluetooth Thermal Printer Extension Free

:receipt: Description:

The InvoicePrinter extension allows you to print professionally formatted invoices via Bluetooth-connected thermal printers directly from your Kodular or App Inventor project.

This extension includes full customization support:

  • :white_check_mark: Dynamic headers and footers
  • :white_check_mark: Product list printing with quantity, price, and discount
  • :white_check_mark: Bold, double-height TOTAL section
  • :white_check_mark: UTF-8 support and ESC/POS formatting
  • :white_check_mark: BluetoothClient support for seamless printer communication

:brick: Available Blocks:

1. :package:PrintInvoice

component_method(1)

:small_blue_diamond: Parameters:

  • BluetoothClient – the connected BluetoothClient component.

  • headerText – text to be displayed at the top (multi-line allowed, centered automatically).

  • invoiceID – unique invoice ID.

  • date – date of invoice.

  • employeeName – name of employee who created the invoice.

  • customerName – name of the customer.

  • productListText – list of product strings formatted like:

     ProductName | QtyBox | QtyChain | Price | Discount@ DISCOUNT
    

Example: Lays Chips | 2 | 4 | 30 | 5@ DISCOUNT

  • discount – final discount on invoice (if any).
  • totalValue – total payable amount.
  • remark – any additional remarks.
  • footerText – text at the bottom (multi-line allowed, centered automatically).

2.:police_car_light: PrintError

component_event

Event PrintError(String message)

  • This event is triggered when there’s a Bluetooth disconnection or any print error.
  • You can use this to show a notifier or log.

:printer: Sample Output on Thermal Printer:

I will Try to upload it

:inbox_tray: AIA Usage Example:

  • Use a ListView to collect product data.
  • Join items as ProductName | BoxQty | ChainQty | Price | Discount@ DISCOUNT
  • Pass YailList to productListText parameter.
  • Fill header and footer with \n for multiple lines.

:toolbox: Requirements:

  • A working Bluetooth thermal printer (58mm/80mm)
  • A connected BluetoothClient component
  • UTF-8 and ESC/POS compatible printer

feel free to comment for improvements or feature suggestions.
and please don’t judge me this is my first extension which i have made.
if you would like me to donate me something for my work you can send me amazon gift voucher in my [email protected]

Download AIX :

InvoicePrinter.aix (8.7 KB)

9 Likes