-
Mar 11th, 2023, 05:27 AM
#1
Thread Starter
Lively Member
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.
-
Aug 3rd, 2023, 11:36 AM
#2
Thread Starter
Lively Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
a new version of the OrdoWebview2 component has been available since August 2024
Version 2.0.8 (2024-08-26)
The control use :
- RC6 version 6.0.15
- WebView2
- Fixed version 128 : Windows 10, 11, Server 2016, Server 2019, Server 2022
- Fixed version 109 : Windows 7, 8, 8.1, Server 2012, Server 2008 R2
New PropertiesInitTimeOut : Defines the waiting time for WebView2 initialization
New Methods :DownloadFileEx: Download asynchronously a file from a URL.Returns a key to identify the download
DownloadCancel: Interrupts the download corresponding to the key provided.
New Events :
?DownloadChecking: Fired periodically while a file is being downloaded.This event is almost identical to DownLoadInProgress . It adds the ability to cancel the download.
Fixes and improvements
- Management of error 9, occurring when the component did not find a WebView2 component (UseEdgeFixedversion = True and EdgeFixedpath points to a directory that does not contain a WebView2 component). OrdoWebView2 displays an explanatory message and loads the Evergreen version of WebView2.
- Fixed error 13 occurring when the component is dropped on certain containers (UserControl, container of languages ??other than Visual Basic 6, ...)
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 EventsShieldChanged 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; Aug 27th, 2024 at 09:45 AM.
-
Sep 20th, 2023, 04:11 AM
#3
Thread Starter
Lively Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
A new version is released : 2.0.6 See post #2
-
Mar 14th, 2024, 01:00 PM
#4
Thread Starter
Lively Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
A new version is released : 2.0.7 See post #2
-
Apr 8th, 2024, 04:55 AM
#5
New Member
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). ?????????? ??????
-
Apr 10th, 2024, 12:14 PM
#6
Thread Starter
Lively Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
Originally Posted by geosta
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?
-
May 14th, 2024, 01:59 AM
#7
Hyperactive Member
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
-
May 15th, 2024, 08:01 AM
#8
Thread Starter
Lively Member
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
-
Jul 25th, 2024, 03:53 PM
#9
New Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
First of all, thanks for your amazing job.
I'm using your solution to open a local web app.
Do you think that's possible to reduce the installer? For example I could remove the Locales that I'm not using.
I you have any Idea of other useless files that I could remove, please tell me.
-
Jul 26th, 2024, 08:47 AM
#10
New Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
Originally Posted by hub1
First of all, thanks for your amazing job.
I'm using your solution to open a local web app.
Do you think that's possible to reduce the installer? For example I could remove the Locales that I'm not using.
I you have any Idea of other useless files that I could remove, please tell me.
*Do you have any Idea of other useless files that I could remove, please tell me.
-
Jul 29th, 2024, 01:01 PM
#11
Thread Starter
Lively Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
Hi
It is possible to drastically reduce the installer if you do not use the fixed version of WebView2 (Set UseEdgeFixedVersion = False). However, changing UseEdgeFixedVersion to True will cause your software to crash.
It also depends on the system on which you are installing your software.
On the latest versions of Windows 10 and on Windows 11, you only need the following components:
- OrdoWebView2.ocx
- the OrdoRC6 folder and its contents, in the same directory as OrdoWebView2.ocx
- Finally, you must register OrdoWebView2.ocx with regsvr32.exe
On slightly older versions of Windows, you must ensure that the Evergreen version of Webview2 is installed and on even older ones that the VB6 runtime is present.
What installation software are you using and what OS are you targeting?
-
Aug 5th, 2024, 07:01 AM
#12
New Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
Windows 10 and Windows 11 last version
I'm using Python Streamlit to show a web dashboard
-
Aug 27th, 2024, 09:47 AM
#13
Thread Starter
Lively Member
Re: OrdoWebview2 ActiveX WebView2 Browser Control (Replacement of the MS browser cont
A new version is released : 2.0.8 See post #2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|