B4J Question Printing a layout JFX8Print

mfstuart

Active Member
Licensed User
Longtime User
In this thread/post, @stevel05 shows how to print only a label.
What would be the approach to print a layout, which has labels and a TextArea on on it? The TextArea may have to cross over to the next page.

Thanx,
Mark Stuart
 

stevel05

Expert
Licensed User
Longtime User
To print a layout print the pane that holds the layout. You can only print one page at a time and it can't automatically split the page for you. You would need to generate one or more layouts yourself that handles this and print as many as are required.

Also, what would be the dimensions of the layout to match the printed paper
That will depend on the size of the paper, and print and screen resolutions.
 
Upvote 0

mfstuart

Active Member
Licensed User
Longtime User
To print a layout print the pane that holds the layout. You can only print one page at a time and it can't automatically split the page for you. You would need to generate one or more layouts yourself that handles this and print as many as are required.

That will depend on the size of the paper, and print and screen resolutions.

Since the paper size will be Letter and maybe A4, can you get the dimensions of each to set the Pane to the dimensions?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Just realized that the layouts in the project are done in the old Scene builder layout format, but I checked and the info you need is in the code.
 
Upvote 0
Top