Here is my solution: In the head of the page (in this case, a coupon page
the customer can print out) I placed the following Javascript block:
<script language="javascript">
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint =
window.open('','','letf=0,top=0,width=1,height=1,t oolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
}
</script>
In the body of the page, I reference the Javascript from a HREF link.
<P align="center"><FONT color="#000000" size="2"><A
href="javascript:CallPrint('divPrint')">Print</A></FONT></P>
I hope this helps!
Andre