<script language="javascript">
   function PrintTable(Id)
   { var mStr;
mStr = window.document.body.innerHTML ;
var mWindow = window;
window.document.body.innerHTML =Id.innerHTML; 
mWindow.print();
window.document.body.innerHTML = mStr;

</script>
<div id="dy">
<body>
<input type="button" onclick="return PrintTable(dy)" value="打   印">
<TABLE border="1" width="100%" bgcolor=#97CBFC>
..把你的表格放在这里,打出来的就是表格了,运用了层的概念啊!
<%}%>      
</TABLE>
</BODY>
</div>