Here's code I used in the past to automatically print on window open. This skips the 'Print' dialogue and just prints to the default printer.
Be warned though IE rejects this unless you have your security settings set very low or your site is in the 'Trusted Sites' list in IE. I've used this in intranet sites but for outside sites use Norman's code.
<html><head>
<script>
function ieExecWB( intOLEcmd, intOLEparam )
{
// Create OLE Object
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
// Place Object on page
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
// if intOLEparam is not defined, set it
if ( ( ! intOLEparam ) || ( intOLEparam < -1 ) || ( intOLEparam > 1 ) )
intOLEparam = 1;
// Execute Object
WebBrowser1.ExecWB( intOLEcmd, intOLEparam );
// Destroy Object
WebBrowser1.outerHTML = "";
}
// eof
</script>
<script language=JavaScript><!-- //
//--></script>
</head><body onLoad="ieExecWB(6,-1);">