Puoi tentare così, non è molto accademico, ma dovrebbe funzionare...

<body onLoad="window.print(); setTimeout('self.close()',5000);">