Hi Simon,
I just answered your other post, it's very simple in fact. Just drop me a
line if you still have problem
You know what, I better post the code once and for all
in the "parent page"
<DIV id="panel1" name="panel1">
... content to be printed
</div>
<input type="button" onclick="OpenPrinter()">
<script>
function OpenPrinter(){
//Open a new windows with out any decoration just
var wi = open("Statsprint.aspx","printrecord",
"width=760,height=600,menubar=no,resizable=no,scrollbars=yes,status=no,toolb
ar=no");
}
</script>
in the new window:
<script>
function FillPage()
{
var div = document.all["CONTENT"];
var origdiv = window.opener.document.all["Panel1"];
div.innerHTML = origdiv.innerHTML;
print();
close();
}
</script>
</head>
<body MS_POSITIONING="GridLayout" onload="FillPage();">
<form id="Statsprint" method="post" runat="server">
<span id="CONTENT">
</span>
</form>
</body>
If you still have doubt just drop me a line,
Cheers,