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:
Dynamic headers and footers
Product list printing with quantity, price, and discount
Bold, double-height TOTAL section
UTF-8 support and ESC/POS formatting
BluetoothClient support for seamless printer communication
Available Blocks:
1.
PrintInvoice
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.
PrintError

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.
Sample Output on Thermal Printer:
I will Try to upload it
AIA Usage Example:
- Use a ListView to collect product data.
- Join items as
ProductName | BoxQty | ChainQty | Price | Discount@ DISCOUNT - Pass
YailListtoproductListTextparameter. - Fill header and footer with
\nfor multiple lines.
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 akgteck@gmail.com
Download AIX :
InvoicePrinter.aix (8.7 KB)

