Take the 2-minute tour ×

need to make Google Chrome print a page automatically. I have a page that is opened when the user clicks my apps print button The page opens, the chrome preview window opens What i want to do is somehow - select the right printer - the user can specify what that is elsewhere in my app under settings, then print the page to that printer and then close the windows. This should happen so quick that when the user presses print the printer starts printing. I need a solution to do this from java-script within a client app built in a webpage. What are the solutions can this be done. Thanks all

share|improve this question

3 Answers 3

up vote 0 down vote accepted

There's no way to do this with only JavaScript.

share|improve this answer
Are you sure, i think i have seen this done, ALso the preview uses a pdf and i have also read that you can fire the pef to print: partners.adobe.com/public/developer/en/acrobat/sdk/… –  spidee Jan 5 '12 at 12:08
That is for PDF files, not for web pages. –  Bogdacutu Jan 5 '12 at 12:38

You can do if you start your chrome (v18+) with the --kiosk --kiosk-printing switches.

You can see it from this video http://www.youtube.com/watch?v=D6UHjuvI7IE

share|improve this answer

Here's a batch file example I've created based on the answer provided by @russenreaktor:

@echo off
start "Chrome" chrome --kiosk --kiosk-printing --url http://www.google.com
share|improve this answer

Your Answer


