Have you tried jFX8Print
Here is a B4j library written in B4j to access the full Printer modules provided with JavaFX8. Full source code is available. At it's simplest, you can print a node using: Dim P As Printer = Printer_Static.GetDefaultPrinter Dim PJ As PrinterJob = PrinterJob_Static.CreatePrinterJob2(P)...
www.b4x.com
This will print any pane. You can create the layout as you want and then print directly.
Yes, I've trying with this but there was many issues:
1 - The page printed are crop, I dont know how to set this to fit the page.
2 - All the labels and buttons that are in the pane appear with border in the print.
3 - I want to assing an automatic name and page setup tu the file, Idont want any dialog boxes.
Please if you have a solution for this, can you write an idea?