Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to write a script that can access the default printer in the network from any devices (such as tab/pc) and on all browser (such as IE,opera,safari,chrome)
I got the below mentioned script :
'Sub Print()
' OLECMDID_PRINT = 6
' OLECMDEXECOPT_DONTPROMPTUSER = 2
' OLECMDEXECOPT_PROMPTUSER = 1
' call WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,1)
'End Sub
'document.write "<object ID='WB' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"

but as it is a vbscript, so it works only in IE

Please reply as fast as possible.
Posted
Updated 29-Mar-15 22:42pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900