C# Webbrowser vs MSHTML rendering

Q

Quantix

I've been having a number of headaches trying to use the Webbrowser
control and MSHTML to generate off screen images of webpages. I've got
it working on a good number of sites, except the following example:

if a webpage's source code includes a div like this:

<div
style="position:absolute;top:117px;left:130px;width:380px;height:166px;"
class="GalleryWindow">
<p><h1>Photography Galleries</h1></p>
</div>

with the CSS class defined as such:

..GalleryWindow
{
border:1px solid black;
padding:5px;
background-color:white;
filter:alpha(opacity=60);
-moz-opacity:0.6;
opacity: 0.6;
}



The div and it's childern do not appear to get rendered by the MSHTML
IHTMLElementRender object (using DrawToDC function). However they do
appear in the original Webbrowser cotnrol's client area. Am I missing a
setting somewhere?
 
Top