Try something like this:
----------------------------------------------------------
<html>
<head>
<title>Printing Fun</title>
<script>
function PrintPage()
{
if (window.print) // NS and IE 5
window.print();
else if (document.all) // pre IE 5
execScript("on error resume next: WebBrowser.ExecWB 6, 1", "VBScript");
}
</script>
</head>
<body>
For more info about printing in IE, see <a
href="http://msdn.microsoft.com/workshop/Author/script/DHTMLPRINT.asp">http://msdn.microsoft.com/workshop/Author/script/DHTMLPRINT.asp</a>
<form>
<input type="button" value="Print This Page" onClick="PrintPage();">
</form>
<OBJECT ID="WebBrowser" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>
</body>
</html>
----------------------------------------------------------
Hope that helps.
chris
----------------------------------------------------------
At 3:36 PM -0400 7/31/00, wish wish wrote:
>does anyone know how to print out a document using coldfusion?
>(user click on one button then all invoices will be printed out from
>printer)
>javascript or jave is fine, too. any custom tags?
>
>thanks
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/fusebox or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.