+ Reply to Thread
Results 1 to 3 of 3

Rendering CSS3 in the WebBrowser Control

  1. #1
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Rendering CSS3 in the WebBrowser Control

    This particular query is not strictly VBA, but it is related to this previous post of mine.

    The webbrowser control apparently uses "IE7 compatibility mode" by default, regardless of the version of IE installed. This means that rendering CSS3 is a no go

    I have found this blog post and this support document that seem to suggest it could be made to use your current version of IE with a simple registry change.

    I have tried to follow the instructions by adding excel.exe with the appropriate value, but try as I might it doesn't seem to have any effect. I am using a simple border-radius: property to test it, it renders correctly when opened in IE but is still ignored by the webbrowser control.

    Would anybody else like to test it, or suggest what the problem might be?

    The test code I am using...

    Please Login or Register  to view this content.
    Thanks.

  2. #2
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: Rendering CSS3 in the WebBrowser Control

    Nevermind, solved it!

    If you are using a 64-bit machine you need to add the executable to Wow6432Node instead.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION]

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Rendering CSS3 in the WebBrowser Control

    Hello EchoPassenger,

    Thanks for sharing that solution. I learned something new.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Printing a WebBrowser Control
    By jwillis07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 06:01 AM
  2. Using WebBrowser Control
    By MikeLanglois in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 01:38 PM
  3. Removing border around Webbrowser Control
    By ge0rge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2009, 09:25 AM
  4. Remove Border from WebBrowser Control?
    By msleger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2008, 11:41 AM
  5. Problem with webbrowser control
    By Mike NG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2005, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1