I'm working in a process of printing documents and found an alternative that is using javascript.
The code is:
<html>
<head>
<script type="text/javascript">
function printpage()
{
window.print();
window.close();
}
</script>
</head>
<body onload="printpage()">
<embed src="pdfhere.pdf"/>
</body>
</html>
If I create a html page and open it with internet explorer, I sent a message to select the printer and print the document. What I want to do is automatically print the document without displaying that message thanks for your help.