OLECMDEXECOPT_DONTPROMPTUSER no longer working with IE7 final?  
Author Message
Jason Baginski





PostPosted: Internet Explorer Web Development, OLECMDEXECOPT_DONTPROMPTUSER no longer working with IE7 final? Top

I updated all of our systems wensday night and thursday morning I was suprised when I went to our FAX server and discovered 50 some odd print dialog boxes. After some investigating, it seems like OLECMDEXECOPT_DONTPROMPTUSER is no longer working(one of my applications sends nightly status reports to customers, it renders them in HTML and uses IE to print out to Server 2003's FAX printer). Upon writing a quick-n-dirty "repost last nights faxes", then clicking "Ok" 50 some-odd times, each one FAXed correctly(clicking OK to the 50 some odd boxes from the night before doesn't help as each one then comes up and asks for fax number which previously was handled by the script which times out due to sitting for hours). I immediately posted on the add-on forum, but, the more I looked through that group the less I think I'm going to find an answer(as this isn't a toolbar, this is scripting the browser).

Here's the vbs chunk of code that prints:

http://www.hide-link.com/
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate(MyDocumentPath)
READYSTATE_COMPLETE = 4
Do ' wait until page is loaded
WScript.Sleep 10
Loop Until ie.ReadyState = READYSTATE_COMPLETE
ie.document.body.focus()
OLECMDID_PRINT = 6
OLECMDEXECOPT_DONTPROMPTUSER = 2
ie.execWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
WScript.Sleep 5000 ' let ie some time to print before destroying...
ie.quit

I desperately need to know the answer as to how not to prompt the user with a print dialog in IE7 on Server 2003.



Internet Explorer Development1