This is going to sound like an odd request, but... I have a web application that is set up to collect data and store it into a database on regular intervals. The application
you can bring up the print dialog using JS, i think its window.print(), which you could put with your ajax call. regarding the auto click i am not sure.