B4J Library B4j Print JavaFX8 + 17 - stevel05    
Aug 10, 2025   
(38 reactions)   
tags: Printing. 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...
link:
I currently use the following to get all printers.
I only added it for convenience, thought it may...
link: .GetAllPrinters
CmbPrinters.Items.Add(P.GetName)
Next
I then start printing documents.
I lean...
link: ")
PJ.PrintPage(ScaleOutput(P,MainForm.RootPane, True))
PJ.PrintPage...
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...
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...
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....
B4J Library Printer Example - Print text with the jFX8 Printer library - stevel05    
May 16, 2023   
(9 reactions)This is an example of printing text using the jFX8 Print library with TextFlow and Text class... it creates multiple pages and prints them to one print job.
There are also options to break on word... in the printed node, the text is selectable in a PDF viewer.
135145
This example was printed to PDF... 135160
A straight forward print of text from a String variable. It will also print from a file.
Dependencies:
jFX8Print Library - B4xlib
TextFlow Library - B4xlib
jReflection
I haven't created...
B4J Question Print in b4j - moore_it    
Aug 18, 2026Hi all, what is the best mode to print in b4j ?
Thanks...
link: ://www.b4x.com/android/forum/pages/results/?query=print+b4j...
B4J Tutorial ? Printing on A4 and Letter sized paper - Peter Simpson    
Nov 17, 2018   
(16 reactions)Hello all,
As the title say, this is a quick tutorial on how to print on A4 or Letter sized paper... B4J Print JavaFX 8
I have attached two PDF files showing example printouts for both A4 and letter...
link: , a delivery note with a space for a signature, picking list and only a couple for purchase order for printing...
link: @Peter Simpson Will be nice-interesting, if you can share the part of code printing at columns how...
link: as they are. Any views that the customer does not want printing, can be dragged off the page to...
B4J Code Snippet PrintAt and Color with non-ui App - Knoppi    
Jul 17, 2026   
(4 reactions)
Log( $"${ESC}End Sub
Public Sub CursorHome
Log( $"${ESC}End Sub
Public Sub PrintAt( Row As Int, Col As Int, Text As String)
Dim toPrint As String = $"${ESC} Log( toPrint)
End Sub
Public Sub Print( Text As String)
Log( Text)
End Sub
Terminal.Clear
Terminal.Color( Terminal.RED, Terminal.WHITE)
Terminal.PrintAt( 5,20," H A L L O ")
Terminal.PrintAt( 6,20," H A L L O ")
Terminal.Reset
Terminal.Print( "Default...
B4J Code Snippet Print all files in a folder (*.pdf, etc.) on the standard printer via VBS (Windows) - KMatle    
Nov 2, 2021   
(1 reaction)I use this small vbs script to print all documents (in my case pdf files) on the standard printer (works fine in a WIN 10 production system). Call it via jShell with the folder as a parameter where the docs are. Printing PDF's is very easy as you don't need to know the installed PDF viever and it's path/parms (however you need to have a viewer installed - I have Adobe, others should...
files.InvokeVerbEx ("Print")
next...
Page: 1  
2  
3  
4  
5  
6  
7