Results 1 to 8 of 8

Thread: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser control)

  1. #1

    Thread Starter
    Lively Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    82

    OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser control)

    OrdoWebView2 ActiveX Control component
    OrdoWebview2 is an ActiveX control (ocx). It replaces the aging VB6 webview control based on a deprecated Internet Explorer!
    Microsoft's WebView2 control is a new component allowing you to include an Edge explorer, based on Chromium, in your own developments.
    OrdoWebView2 uses Olaf Schmitt's RC6 framework

    In fact, OrdoWebview2 is an ActiveX control interface to facilitate the task of developers who are more accustomed to an ActiveX control interface than to the manipulation of the RC6 Framework.

    The installation kit, downloadable here, installs the Ocx, the RC6 framework (which is deployed side-by-side without registration) and a fixed version of Microsoft's WebView2 control.
    It is of course possible to use the Evergreen version of WebView2 which is constantly updated.

    This component is released as freeware and can be downloaded from https://freeware.ordoconcept.net/OrdoWebview2.php
    Last edited by saturnian; Sep 20th, 2023 at 02:34 AM.

  2. #2

    Thread Starter
    Lively Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    82

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    a new version of the OrdoWebview2 component has been available since March

    Version 2.0.7 (2024-03-12)
    The control use :

    • · RC6 version 6.0.15
    • · WebView2
      • Fixed version 122 : Windows 10, 11, Server 2016, Server 2019, Server 2022
      • Fixed version 109 : Windows 7, 8, 8.1, Server 2012, Server 2008 R2


    New Properties
    AreBrowserAcceleratorKeysEnabled : Determines whether browser-specific accelerator keys are enabled.
    AreDevToolsEnabled : Determines whether the user is able to use the context menu or keyboard shortcuts to open the DevTools window.
    IsStatusBarEnabled : Determines whether the status bar is displayed.

    New Methods :
    DownloadFile : Download asynchronously a file from a URL
    GetCookies : Returns the cookies for the current top-level document.
    GetOrdoWebView2DataPath : Returns the data path of the WebView2 component embedded in the OrdoWebView2 control.
    GoWallet : Navigates the OrdoWebView2 to the Wallet page.
    WebViewSetFocus: Gives focus to the Webview2 component embedded in the OrdoWebView2 control.

    New Events :
    DownloadCompleted : Generated by the DownloadFle function
    DownloadError : Generated by the DownloadFle function
    DownLoadInProgress : Generated by the DownloadFle function
    WebResourceResponseReceived : Raised when the control receives the response for a request for a web resource

    Fixes and improvements

    • Improved tracking of URL changes when navigating within a page
    • Fixed an error in certain circumstances when initializing in Private Browsing mode
    • Fix shield initialization at WebView2 init



    Version 2.0.6 (2023-09-16)

    The control use :

    • RC6 version 6.0.15
    • WebView2
    • Fixed version 117 : Windows 10, 11, Server 2016, Server 2019, Server 2022
    • Fixed version 109 : Windows 7, 8, 8.1, Server 2012, Server 2008 R2

    New Properties
    New Methods :
    SetShieldLevel : limits browsing to the domain contained in the URL entered, more or less drastically. Acts as a kind of addblocker.
    GetShieldLevel : returns shield level.
    GetShieldException : returns shield exceptions.
    NavigateToFile : Load a file on disk and display it in the OrdoWebView2 browser.
    FileSelect : Displays a file selector and loads the selected file from disk and displays it in the OrdoWebView2 browser
    FileExist : Returns True if the file entered as parameter is present on disk
    Add_WebResourceRequestedFilter : Adds a URI and resource context filter for the WebResourceRequested event
    Remove_WebResourceRequestedFilter : Removes a matching WebResource filter that was previously added for the WebResourceRequested event.
    Remove_All_WebResourceRequestedFilter : Removes all WebResource filters that was previously added for the WebResourceRequested event.
    GetWebResourceRequestedFilter : returns the list of defined filters.

    GetLocaleID : Returns a Long value that indicates the user's locale (language and country) ID.
    New Events
    ShieldChanged fired when the shield level is changed by the SetShieldLevel method.
    WebResourceRequested : raised when OrdoWebView2 is performing a URL request to a matching URL and resource context filter that was added with Add_WebResourceRequestedFilter



    Version 2.0.5

    The control use :

    • RC6 version 6.0.14
    • WebView2
      • Fixed version 114 : Windows 10, 11, Server 2016, Server 2019, Server 2022
      • Fixed version 109 : Windows 7, 8, 8.1, Server 2012, Server 2008 R2

    New Properties
    New Methods :

    • InitEx : extended version of the Init method. Allows you to :
      • initiate browsing in private mode
      • choose the user data directory of the browser.
      • Set browser command line switches
      • ...

    • GetInnerText : returns the text content of the control, but also the cookies of the page, all the links of the page...
    • GetInnerHTML : returns the HTML content of the control, but also the cookies of the page, all the links of the page...

    New Events

    • NavigationStarting : raised when the WebView main frame is requesting permission to navigate to a different URI.



    Version 2.0.4
    The control use :

    • RC6 version 6.0.12
    • WebView2 Fixed version 110

    New Properties
    New Methods :

    • SetZoomFactor : sets the zoom factor for the page displayed in the control...
    • RunJs : runs JavaScript code from the javaScript parameter in the current top-level document rendered in the Control (Replace JsRun)
    • RunJsAsync : asynchronously runs JavaScript code from the javaScript parameter in the current top-level document rendered in the Control (Replace JsRunAsync)

    New Events

    • ZoomChanged : raised when the user change the browser zoom factor.


    Last edited by saturnian; Mar 14th, 2024 at 12:57 PM.

  3. #3

    Thread Starter
    Lively Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    82

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    A new version is released : 2.0.6 See post #2

  4. #4

    Thread Starter
    Lively Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    82

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    A new version is released : 2.0.7 See post #2

  5. #5
    New Member
    Join Date
    Apr 2024
    Posts
    1

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    Hello Saturnian and thank you for the very nice component.

    Do you know if we can use the OrdoWebView2 ActiveX control in Microsoft Access?

    I have added the control in an Access form, but when it runs, it gives the following error message:


    ---------------------------
    OrdoWebView2
    ---------------------------
    Run-time error '-2147467259 (80004005)':

    System Error &H80004005 (-2147467259). ?????????? ??????

  6. #6

    Thread Starter
    Lively Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    82

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    Quote Originally Posted by geosta View Post
    Hello Saturnian and thank you for the very nice component.

    Do you know if we can use the OrdoWebView2 ActiveX control in Microsoft Access?

    I have added the control in an Access form, but when it runs, it gives the following error message:


    ---------------------------
    OrdoWebView2
    ---------------------------
    Run-time error '-2147467259 (80004005)':

    System Error &H80004005 (-2147467259). ?????????? ??????

    Hello Geosta,
    I have no experience with using ActiveX in Access.
    Which version of Access are you using? And is it 32-bit or 64-bit?

  7. #7
    Hyperactive Member Daniel Duta's Avatar
    Join Date
    Feb 2011
    Location
    Bucharest, Romania
    Posts
    399

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    Hi Saturnian! I have noticed that WebView2 rendered by Olaf does not contain many "get" methods included by you in the control. Did you use other libraries for those functionalities ?
    Last edited by Daniel Duta; May 14th, 2024 at 02:08 AM.
    "VB code is practically pseudocode" - Tanner Helland
    "When you do things right, people won't be sure you've done anything at all" - Matt Groening
    "If you wait until you are ready, it is almost certainly too late" - Seth Godin
    "Believe nothing you hear, and only one half that you see" - Edgar Allan Poe

  8. #8

    Thread Starter
    Lively Member saturnian's Avatar
    Join Date
    Dec 2017
    Location
    France
    Posts
    82

    Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont

    Hi Daniel! Most of these 'get' methods are javascript properties of the loaded document.
    We can get them all from Olaf's cWebWiew2 component, but I integrated them so that a user of my Ocx does not have to worry about javascript

Posting Permissions

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



Click Here to Expand Forum to Full Width