Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Printing to a client printer from a web app

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?

like image 937
Jeremy Avatar asked Oct 15 '08 23:10

Jeremy


People also ask

How do I print from Web application?

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.

Can print pages from browser?

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.


1 Answers

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.

like image 93
Joel Coehoorn Avatar answered Oct 26 '22 23:10

Joel Coehoorn