C# Webbrowser vs MSHTML rendering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Quantix

    #1

    C# Webbrowser vs MSHTML rendering

    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:1 17px;left:130px ;width:380px;he ight:166px;"
    class="GalleryW indow">
    <p><h1>Photogra phy Galleries</h1></p>
    </div>

    with the CSS class defined as such:

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



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

Working...