[thelist] Printing From the Browser??
Ron White
rwhite at edverify.com
Tue Sep 26 09:53:56 CDT 2000
If its IE based here's the ticket:
Put this in the <head>:
<object id="factory" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=5,0,5,35">
</object>
<SCRIPT LANGUAGE="vbscript">
<!--
function doPrint()
document.all.item("noprint").style.display="none"
document.all.item("printtitle").style.display=""
with factory.printing
.header = ""
.footer = ""
.topMargin = 0.4
.bottomMargin = 0.4
.leftMargin = 0.4
.rightMargin = 0.4
.Print(false)
end with
document.all.item("noprint").style.display=""
document.all.item("printtitle").style.display="none"
end function
//-->
</SCRIPT>
Then put this Div around the stuff you DON'T want printed, along with the
print button:
<div id=noprint align=center>
<INPUT id=cmdPrint name=cmdPrint type=button value="Print"
onclick=doPrint()>
</div>
And if you want a clean title for the reports, put it inside this:
<div id=printtitle style="display:none">
</div>
HTH,
Ron
More information about the thelist
mailing list