Hi,
I would like print web page with out print dialog box in a new window. I got a problem when i click on print link, it raises an error "access denied: WB.ExecWB".
I tried with following snippet:-
<HTML>
<HEAD>
<script language="VBScript">
Sub myPrint()
OLECMDID_PRINT = 6
OLECMDEXECOPT_DONTPROMPTUSER = -1
WB.ExecWB OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER
End Sub
</script>
</HEAD>
<body>
<OBJECT ID="WB" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2" width="1" height="1" VIEWASTEXT></OBJECT>
<a href="javascript:myPrint();">Print</a>
</body>
</html>
could u pls let me know who knows how to resolve the problem.
Thanks in advance