Click to See Complete Forum and Search --> : printing from a child window


tonyhall
07-30-2003, 05:05 AM
I am trying 2 write a piece of code, whereby a word document is opened in a new window and printed. I can get the document 2 open in a new window with no trouble, but can't get it 2 automatically print. Does any1 know if this is possible and if so how 2 do it??

xataku_nakusute
07-30-2003, 05:19 AM
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>

or

automatically without reference

<script type="text/javascript">
window.print()
</script>

tonyhall
07-30-2003, 05:27 AM
thanks

xataku_nakusute
07-30-2003, 05:31 AM
np:D