M
Matthew
I found a script that lets a trusted web site print without the user
confirming it.
<script language="javascript1.2">
<!-- copyright(c) (e-mail address removed)
function print() {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
execScript("on error resume next: WebBrowser1.ExecWB 6, -1", "VBScript");
execScript('on error resume next: WebBrowser1.outerHTML = ""', 'VBScript');
</script>
I installed XP SP2 on my computer and this does not work any longer. When I
open my web page, instead of just printing it displays the print dialog box.
Does anybody know if there is a workaround?
If this is the wrong forum for this question, could you point me in the
right direction?
Matthew
confirming it.
<script language="javascript1.2">
<!-- copyright(c) (e-mail address removed)
function print() {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
execScript("on error resume next: WebBrowser1.ExecWB 6, -1", "VBScript");
execScript('on error resume next: WebBrowser1.outerHTML = ""', 'VBScript');
</script>
I installed XP SP2 on my computer and this does not work any longer. When I
open my web page, instead of just printing it displays the print dialog box.
Does anybody know if there is a workaround?
If this is the wrong forum for this question, could you point me in the
right direction?
Matthew