I've been searching for a week, at least, for this. I need to auto-print (and close) an IE window containing a pdf document.
I thought I could do it by putting the pdf into an <iframe> and then doing a "window.print(); window.close()" but no joy. I also tried Robbe Morris' method for "document.iframe.focus(); document.iframe.print()" but that doesn't work for a pdf.
I'm using IE 7 and Acrobat Reader 7. Any thoughts would be really appreciated. Thanx.