B4J Question B4J printout

TomKluz

Active Member
Licensed User
Longtime User
Hello,
I would like to make a printout from B4J. I have traced all comunity threads and I am a little bit lost.
May I ask for indication of easyest way to got a printout ?

Kind regards
TomKluz
 
Hello,
One question more about printout.
Is it easier to create PDF file and then print in normal way under Windows or make only a printout ?
 
Upvote 0
Hello
Thanks for your reply.
Perhaps you remember, perhaps not but 3 month ago you (and community) have help me to start from zero and create an app in two versions for Windows and Android .
It comunicates with Arduino devices, pick up data etc.
Recently I am going to make a raport printout (or pdf) from both versions but I am starting as previously from B4J.
I know that I can use pdf printer in Windows but I don't know if it is possible in Android.

May you advice me the easiest way to do it concidering this 2 versions ?
May I use something (I mean the code) from B4J in B4A ?

Thanks in advance
 
Upvote 0
Hello
I have spent some time with B4J trying to create printout and it seems to be working.
As I understend this jFX8Print library is printing visible area of entire MainForm.

At the and it forces a default name of output pdf file as 'JavaFXPrintJob'.
Is it possible to change this default name ?

Kind regards
 
Upvote 0
Try this :

PJ.GetJobSettings.SetJobName("JobName")

Should then save the file as JobName.pdf (or whatever format you have chosen)
 
Upvote 0
Back
Top