Solved

WebBrowser ActiveX will not print in Windows Server 2008

Posted on 2010-11-10
1
1,027 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
A 2007 NCSA Cyber Security survey revealed that a mere 4% of the population has a full understanding of firewalls. As business owner, you should be part of that 4% that has a full understanding.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

696 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