kodlar ben yazmadım, alıntdır.
<html>
<head>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js" > </script> 
<script type="text/javascript">

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data) 
    {
        var mywindow = window.open('', '', 'height=600,width=900');
        mywindow.document.write('<html><head><title>Başlık</title>');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.print();
        mywindow.close();

        return true;
    }

</script>
</head>
<body>

<div id="mydiv">
   Sadece bu kısım print edilecek.
</div>

<div>
    burası değil
</div>

<div id="anotherdiv">
   burasıda değil.
</div>

<input type="button" value="Yazdır" onclick="PrintElem('#mydiv')" />

</body>
</html>