Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Printing with InternetExplorer.Application / ExecWB OLECMDID_PRINT on Windows 2012 under Service fails

$
0
0

On Windows 2008 and Windows 2008 R2 it was possible to start a VB-Script from a service process, create the InternetExplorer object and print a HTML file by calling ExecWB with the OLECMDID_PRINT parameter.

On Windows 2012 this does not work. On Session 0 you get the following error dialog:

The same script works if started from an interactive process.

How can I make that work on Windows 2012?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>