B4J Question Print on labeller with jFX8Print, How?

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
I specify that I use JFX8Print with success for print pages that are PDF or any node of a B4J project, but I can't print on a printer
an formatted string without specifying the page format (this is not necessary)
I have to use labellers Zebra and these can print labels by sending a file with the 'prn' extension or even a string (the prn file is a text file).
Can you give me some advice?
Thanks
 

micro

Well-Known Member
Licensed User
Longtime User
Can you do it from the command line? If so then you can create a batch file at runtime and run it with jShell. It is done by running cmd /c.
Of course Erel and work fine but only if the printer is connect on serial COM
Dim sh As Shell
sh.Initialize("sh", "print", Array As String("/d:COM3", File.DirApp & "\" & "Prova.prn"))
sh.Run(-1)
The printer is connect on USB port "USB001" and if i send a file directly from the Zebradesigner (software for maker label) work well.
If i use with B4J:
sh.Initialize("sh", "print", Array As String("/d:USB001", File.DirApp & "\" & "Prova.prn"))
the output is not to the printer ma a file is created in File.DirApp called "USB001"

Best regards
 
Upvote 0
Top