Solved

WebBrowser ActiveX will not print in Windows Server 2008

Posted on 2010-11-10
1
996 Views
Last Modified: 2012-05-10
We run a Microsoft Access application on a Windows Server 2008 R2 box.
One particular form is used for printing HTML-coded documents. This features a webbrowser activex control.
The control's navigate method will load the page correctly. When calling the print method, nothing actually prints out:
Me.WebBrowser1.Object.ExecWB 6, 2, 0, 0

The URL are in the trusted sites zone, protected mode is turned off. "Initialize and script ActiveX controls not marked as safe" is enabled, as is "Run ActiveX controls and plugins"
I tried it on a sample html document with a very simple structure:
<html>
<body>
<h1>test print</h1>
</body>
</html>
If I open the document in a regular browser window, it prints no problem, so clearly the server environment is imposing a security restriction on the the ActiveX control.
It is not only the ExecWB method that is failing. If I right-click in the window using the context-sensitive menu, and select Print, it will give me the dialog box to print, but when clicking "Print" nothing comes out the printer.

Any suggestions to turn off this security on my ActiveX control? Is there an alternative ActiveX control that people know of that doesn't incur the same lock-down in Windows Server 2008?

This behaviour only happens in Windows Server 2008 R2. The form works correctly on all desktops and Windows 2003 server boxes (where the IE group policy lock-down isn't so secure).

thanks for any advice
0
Comment
Question by:Billy_London
1 Comment
 
LVL 3

Accepted Solution

by:
Billy_London earned 0 total points
ID: 34119171
microsoft investigated and advised turning off UAC.
this does resolve the issue, although it sounds like a sledgehammer approach.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now