If I have a printer hooked directly to a pc (a kiosk with a printer), how would I go about creating the ability for a web page (.net web app) to print a jpg to the kiosks printer with no user intervention other than clicking a button on the page?
Web applications can print to local printers installed on your device using the browser print function which is accessible by pressing the Ctrl+P keys. Without using the browser's print function, web application cannot access printers on your device.
Open the Google Chrome browser and access the page you want to print. in the upper-right corner of the browser window. Select Print from the drop-down menu that appears. In the window that appears, click the box next to Destination, and select your preferred printer from the list.
This has been asked several times already, and the result is always that you can't do it via normal web technologies (HTML + Javascript). The best you can do is open the print dialog, and that is by design. What you can do since you control the kiosks is create some kind of browser extension (like a flash object, .Net hosted control, java applet, etc) and make that available to your page, so that it handles the printing part for you.
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