...

View Full Version : print a word document with hiden print dialoge box



eurka
07-22-2005, 06:29 PM
using this code it can print with disabling the print dialoge
so when pess a button it print the page direct but i need
the same with change that when i press a button to print
a word document pcall p.s print.doc not to print the viewed
display

this code can print the view display can be modefyed to
make to print a word document

this code that writen by requestcode
<html>
<head>
<title>Print Test</title>
<script>
function Print()
{
if (document.all)
{
WebBrowser1.ExecWB(6, 6) //use 6, 1 to prompt the print dialog or 6, 6 to omit it;
WebBrowser1.outerHTML = "";
}
else
{
window.print();
}
}
</script>
</head>
<body>
<object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<A HREF="#" onClick="Print()">Print this page</a>
</body>
</html>

eurka
07-24-2005, 12:03 AM
up up up up up up up up up up up up

is there any one have any idea

:eek: :eek: :eek: :eek: :eek: :mad: :mad:

JamieR
07-24-2005, 02:34 AM
'eck :eek:

This is more of a JS question....get a mod to move it there ;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum