I am developing a web application (only has to work in the latest Chrome) that prints different content to different printers.
What I need is to have the ability to change the default Chrome printer programmatically.
I searched for a javascript solution, it seems there is no such one.
I searched for Google Chrome extension, also not availabe. ( a firefox extension is available)
I tried to develop Google Chrome extension using native messaging, I prepared the extension, but this solution and the native application would be so complicated, due to setup prerequisites (the extension and the native app) and also the complexity of printing HTML/CSS content from this native app.
my question is about the ability to do so using any other possible solution as:
flash actionscript 3 would be better, as it is preinstalled with Chrome.
thanks is advance
AS3 has a PrintJob class for printing, however, only the AIR runtime has methods to get a list of printers, and set the printer programmatically.
For a Java applet approach, see "Force target printer in Java".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With