With what you just said, is a reason why you are not going to be able to acomplish this goal. Open up the window and let your users print the document and close it when they are done. There is no direct access to the printer. If you really need this, then
you should probably look into a client application and not a web application. I always tell people to build the application around the browser, not the other way.
Eric