B4A Library Printing and Pdf creation - Erel    
May 18, 2020   
(55 reactions) with the PdfDocument object.
2. Printing with the Printer object.
Lets start with PdfDocument.
Dim....
7. Close the pdf object.
Printing
53290
The printing feature is based on the OS printing... example to print to a HP printer: https://play.google.com/store/apps/details?id=com.hp.android...
The Printer object can print bitmaps, html documents, WebView content and PDF documents.
Example...)
printer.Initialize("")
Print
End Sub
Sub Print
printer.PrintHtml("job"...
B4J Library B4j Print JavaFX8 + 17 - stevel05    
Aug 10, 2025   
(38 reactions). Full source code is available.
At it's simplest, you can print a node using:
Dim P As Printer...)
PJ.PrintPage(lblTest)
PJ.EndJob
Or with dialogs:
Dim PJ As PrinterJob = PrinterJob_Static.CreatePrinterJob
PJ.ShowPageSetupDialog(Null)
PJ.ShowPrintDialog(Null)
PJ.PrintPage(MainForm.RootPane)
PJ.EndJob
Code to scale a view to print on a single page.
Sub ScaleOutput(P...).RunMethod("add",Array(SJO))
Return NJO
End Sub
'Print with dialogs
Dim PJ...
B4A Question Android Printing Framework - luke2012    
Mar 13, 2014Hi to all,
my app's users are asking a direct print feature in order to print a txt... this document that talk about official "Android Printing Framework" :
http://www.techotopia.com/index.php/Printing_with_the_Android_Printing_Framework
More in detail I think there are two interesting section :
Creating and Printing HTML Content (Easy)
To enable HTML printing, the WebView class has been extended in Android 4.4 to include support for printing with minimal coding requirements...
B4J Tutorial Print with PrintHtml tool - Erel    
Dec 9, 2013   
(6 reactions)PrintHtml is a small Windows utility that you can use to print from your app.
First you should download PrintHtml.exe and also the DHTML Editing Control: http://www.printhtml.com/download.php
Copy PrintHtml.exe to the Objects folder of your app.
http://www.b4x.com/basic4android/images/SS-2013-12-09_14.45.11.png
Using jShell library we call this utility to print the html string. You can use HTML language to format the output.
In the above screenshot I used a PDF printer to create a PDF...
B4i Question [Solved] Printing with BLE - aeric    
Nov 23, 2022I downloaded an app from App Store call Tools4BTPrinter and able to print. Pairing is not required from the iOS settings but through scanning the BT device.
I am able to connect to my 58mm bluetooth thermal printer using iBLE library in the example but I don't know how I can use Manager.WriteData as I am not sure which Service and Characteristic to pass.
136340
https://www.b4x.com/android/forum/threads/b4x-ble-2-bluetooth-low-energy.59937/...
B4J Library Simple Native Print Document Library - Peter Simpson    
Oct 25, 2026   
(14 reactions)Hello everyone,
Here is a really simple library for printing your layouts or images with ease in B4J. This library is a slightly expanded version of the print routine Inline Java code...
link:
It was in the ZIP File SS_SimpleNativePrinter_Lib
Thank you for that.
I'll have to look into...
link:
Hello GMan,
I've looked through this library and cannot find a reference to SS_EasyModBusClie...
link: Hello GMan,
what is the SS_EasyModBusClient - lib for and how to use it ?
I've looked through...
B4A Code Snippet Print to a Bluetooth POS-receipt printer with matching codepage - KMatle    
Mar 2, 2017   
(16 reactions)Original thread: https://www.b4x.com/android/forum/threads/bluetooth-printing-via-spp.17692/page-12
I simlified the above's example to print on a BT POS printer like this
53390
with the correct codepage to print special chars like "äöüßéè", etc. (codepage 1252).
Steps:
- switch...)
- run the app and print
#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: Bluetooth POS Printing
#VersionCode: 1
#VersionName...
B4J Tutorial Turn your Raspberry Pi into a print Server and use it with B4J - hatzisn    
Sep 25, 2024   
(4 reactions)This is not a B4J tutorial but since it can be used also with B4J to print documents I post it here. Read the following link:
https://www.tomshardware.com/how-to/raspberry-pi-print-server
And to use CUPS to print documents through jShell in B4J read here:
https://openprinting.github.io/cups/...
Share My Creation Print Server (USB Thermal Receipt) running on Raspberry Pi - aeric    
Oct 21, 2022   
(8 reactions)SXbmhKz0sa4
This is a demo video of B4J Print Server which is a REST API Web Server. The server can run on Windows and Linux including on a Raspberry Pi OS.
I have also created B4J, B4A and B4i Client app to send request to the server through GET and POST. The print data can contain ESC/POS string sent through JSON.
Sorry, I am not sharing the code for the time being. This post is to show B4X is able to create this kind of solution....
B4R Code Snippet ESP32CAM - Print Logs Workaround - b4xlib included - hatzisn    
Oct 24, 2022   
(3 reactions)All of you that have bought the ESP32CAM you know that it does not print logs in B4R. So if you cannot go through a problem, just go around it. The around way is to post in MQTT server the logs and display them in B4J app. And it works.
b4xlib usage:
Sub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
Public wificlient As WiFiSocket
Private tim As Timer
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
'example of connecting to...
Page: 1  
2  
3  
4  
5  
6  
7