Print from Jmix web app to client printer

Hello,

I’ve got a Jmix application that is about 70% complete. This app currently uses Java to find a client side printer by name, which works great…but only when running the application locally. When I deploy to a test server, it naturally fails because it is not looking on the client machine for the printer to use.

The only help on solving this issue that I’ve found so far is from 10+ year old StackOverflow posts. So I’m trying to see if this is even possible using Jmix, and if so, how I might go about getting started. The posts I found seem to point to the need for a Java Applet. I’m just not sure if this is applicable to the Jmix application or not. I would love for some wisdom on my conundrum.

Thanks in advance,
Adam

Hi Adam
As you mention correctly, your Java Application on the Webserver does not have access to the printer of the clients. The only thing i can imagine, is a javascript program which might find the printers which the browser sees.
Basically you should build the printout on the screen and then call window.print(). There will popup the printer dialog of the enduser and then print the actual page.
Hopes this helps.
About the JavaApplet; with the actual browser and all security settings, you will have a hard time to make it run.

Felix