I have a unique situation with my web application. It collects data and stores it in a database at regular intervals, with the screen showing the most recently added information using AJAX to refresh. I also need to automatically create a printout whenever new data is added to the database. While I currently have a print button that triggers the print dialogue box and uses a different style sheet for a "print view," I want to eliminate the need for user interaction. Is there a way to automate the printing process so that the page prints directly to the default printer without requiring manual input?
Update: I am aware of the window.print(); function to bring up the print dialog box, but I am looking for a solution that eliminates all human intervention and sends the printout directly to the printer from the website itself based on the new data. From the feedback received, it appears this functionality cannot be achieved solely through a web browser.