B4J Question Print layout to PDF without page setup

h.drose

Member
Hi,

I need to print a layout that contain many labes, but I need the page come with a default setup:

* Letter - 8.5" x 11"
* Default name assign by code, ex.: OT044

Also I need that the labels borders dont appear on the print.

here an example that what I need:

1637499339511.png
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Have you tried jFX8Print

This will print any pane. You can create the layout as you want and then print directly.
 
Upvote 0

h.drose

Member
If you can rely on Excel or Word being installed on the client computer then you can create such template with Excel or Word. You can then fill it and convert it to PDF with XLUtils.

Note that only the PDF step relies on Excel / Word being installed.
Yes, actually, this template is designed on excel but I prefer to print it from the pane because I dont what to depend if excel / word are installed.

Otherwise, if it cant be as i wanted,

Can you please drive me how to do it with excel?

I will appreciate it.
 
Upvote 0

h.drose

Member
Have you tried jFX8Print

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?
 
Upvote 0
Top