After understanding this approach, printing will be painless for you forever.
Requirements:
- Any pdf file generation tool, I used HtmlToPdf lib.
- Any base64 converting tool, I used Base64EncodeDecodeImage lib.
- Rawbt printing service app, it is free and most downloaded app in play market...
Hello everyone, I want to share a method to be able to print or save as pdf a table from B4XTable.
This code is very basic and can be adjusted for any need.
You are free to play with its possibilities.
In this case you will need the following libraries:
-B4XTable 1.21+
-Printing 1.0+ (Link)...
This is a wrap of the Javax print API. It is more complex to use than the Javafx print API but does have a few benefits such as being usable in non-UI apps and access to java Swing printable interface which makes it easy to print the content of swing nodes. The main example app contains an...
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...
I came across this snippet when helping a user on the forum and thought it may be more widely useful:
Create a Paper instance,
'Create a new Paper
'Units should be one of MM, INCH or POINT
Public Sub CreatePaper(Name As String, Width As Double, Height As Double, Units As String) As Paper...
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...
Hello,
I am struggling with simple printing on A4 paper and also on PDF-printer using the jFX8print library.
The printout has a week quality/resolution for text and barcode:
As I need to scan the barcode from the printout it is essential for me to have a much better resolution.
The small...
I use this VBS script to print all files in a folder on the standard printer (in my case PDF-files). Windows recognizes the file type and uses the defined program (e.g. Acrobat for PDFs) to print the files. You can easily add some functions (use Google to find out how) like getting the names of...
I use the print library to print PDF content, as described at the post below. It works just fine.
https://www.b4x.com/android/forum/threads/76712/#content
Now, I need to print PDF on one part of the page, and HTML on the same page.
Would it be possible to do that with the print library ?
I was trying to use the PDF printing library discussed at https://www.b4x.com/android/forum/threads/printing-and-pdf-creation.76712/ but pictures were terrible.
The values posted as example are for a resolution of 72dpi, which is quite inadequate.
Here is what I do to get 300dpi printing...
Hello all,
As the title say, this is a quick tutorial on how to print on A4 or Letter sized paper using the follow information provided by Steve Laming (better known as @stevel05).
CLICK HERE for B4J Print JavaFX 8
I have attached two PDF files showing example printouts for both A4 and letter...
Hi
I have an Android handheld with an internal printer, is a 3nstar Halo 5″ Smart Payment Terminal (PT0505)
I have an app working with Bluetooth printer but I don't know how to make it print to the internal printer.
I have the SDK but Zero knowledge of Java
Can you help me please??
Thanks...
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.