Re: MS Edge WebView2 ActiveX wrapper
Hi,
Going from beta to live was a bit more work as I anticipated. :)
However as of now, the new control is available and has been renamed as: [URL="https://antview.dev"]AntView
[/URL]There's a pretty new website, help, an installer... oh lala!
It even ended up as a product in the webshop.
The list of changes since last update:
2021/08/25
release 1.0.63
- Updated the installer script as it did not put the help file in the correct spot in the start menu (expected was AntView .. reality was Vimarun .. oops).
So now you can find the windows help file too.
2021/08/24
release 1.0.62
- Added functions for licensing, DemoDaysLeft, UnlockStatus, UnlockControl.
- Changed EDGEWEBVIEW2_WEB_ERROR_STATUS_ error constant prefixes to wes, eg. EDGEWEBVIEW2_WEB_ERROR_STATUS_UNKNOWN is now wesUnknown, which is more in line with the rest of the code.
- Added event onScriptDialogOpening.
- The UserDataFolder logic now uses the default Microsoft logic for creating a default caching folder. This means that by default it will create a folder named {app.exe}.WebView2 folder. This is because 2 separate applications hosting the WebView2 control cannot share the same caching folder. This is configurable (see the help).
- Removed beta logic
- Changed the product name from AntEdgeWebBrowser to AntView as the former is too hard to pronounce.
- Renamed EdgeWebBrowser itself to AntView
- For all the classes the "EdgeWebView2" part in their names has been renamed to "AntView".
- Last minute name changes on a few functions to make them a closer match with the native .net interface from Microsoft.
This should make it easier to find help online and not get confused by different naming schemes.
- Removed LoadHtml function, as it did not set the referer contrary to promise, so it is better to use NavigateToString instead.
- The OnExecuteScriptResult event is now called OnExecuteScript (shorter=better)
- Added new logo & website
- Wrote installer
- Wrote first version of help
- Updated demo's to use new name of the control, fixed a localisation issue in the ExchangeRates demo view.
so for the new control have a look at [URL]https://antview.dev[/URL] !
Cheers!
--
Wil
Re: MS Edge WebView2 ActiveX wrapper
Congratulation Wil to the release!
I've been eagerly awaiting this release and have just installed it and are about to start testing and implementing it for an existing system.
I want to purchase a license right away. Do i then get license number one? :)
Re: MS Edge WebView2 ActiveX wrapper
Nils,
LOL
Thanks Nils.
If it had license numbers than yes, it would be license number 1, or maybe 2 as I'm using the control for one of my own customers as well ;)
--
Wil
Re: MS Edge WebView2 ActiveX wrapper
Thanks Wil. My customer just bought a copy ( license #3?)
For the UserDataFolder you might want to clarify the Online help. It should be done in OnComCreate. OnCreate is too late.
Re: MS Edge WebView2 ActiveX wrapper
Speaking of Chuck's customer...
If it's helpful for anyone, here's the file and class info for the .OCX control you can paste into your .exe.manifest files if you want to deploy using Side-By-Side registration. It was created using a tool called regsvr42 ([URL]https://www.codeproject.com/articles/28682/regsvr42-generate-sxs-manifest-files-from-native-d[/URL]) against the current release, 1.0.63:
[CODE]
<file name="antview.ocx">
<comClass description="EdgeWebView2WebResourceRequestedEventArgs Object" clsid="{0C2BFE58-1A8A-4D83-89B1-3095E0AB036C}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2NewWindowRequestedEventArgs Object" clsid="{C2ABDE17-C1DE-4BD3-AC47-9CF75D16F918}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2SourceChangedEventArgs Object" clsid="{CFEDFEF8-9B03-48BA-9566-516163DF4EA3}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2ProcessFailedEventArgs Object" clsid="{9F41340F-4E38-419D-90F4-1CF790706782}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2PermissionRequestedEventArgs Object" clsid="{D6F6EF34-5CD0-4DCD-848C-720FA9AB93AC}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2ScriptDialogOpeningEventArgs Object" clsid="{9EA17BDA-36FB-47B4-A4F9-C0A29A154A69}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2DevToolsProtocolEventReceiver Object" clsid="{66617E01-BE7B-4910-86DF-B4C241D2AF1F}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2DevToolsProtocolEventReceivedEventArgs Object" clsid="{81BBF01A-0C6B-4221-B7DC-E5D0A3E843EF}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2EnvironmentOptions Object" clsid="{D011D6A6-F958-4B89-AC3B-09673973D2C4}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2Environment Object" clsid="{0AA87ED3-C9BD-44A3-A18D-E507DE6B7B27}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2WebMessageReceivedEventArgs Object" clsid="{712B1A3C-C5C0-4D44-91B0-0E454AD07256}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2HttpHeadersCollectionIterator Object" clsid="{CE0AE45A-BF24-4668-92FF-5AA64F34B5EF}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2ContentLoadingEventArgs Object" clsid="{CF64BDD2-7770-49F5-A68D-40827CC3F190}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2NavigationCompletedEventArgs Object" clsid="{04A54D10-27B5-48C2-AE86-11F398F55523}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2HttpResponseHeaders Object" clsid="{C00CD9F2-BBEF-4B5E-9D3D-BE08D09157D5}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2HttpRequestHeaders Object" clsid="{C225455F-55B8-49A2-9246-9A7BB26F577E}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="MS Edge WebView2 Browser Control" clsid="{7E146B1D-42ED-4386-904F-9A9EDB61F9AE}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="AntViewDocument Object" clsid="{D89731D5-058C-4768-8CBA-386BE21BE090}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="TPropertyPage1 property page" clsid="{90B91CAC-E369-4C9B-AF4B-39AFA824FC73}"></comClass>
<comClass description="EdgeWebView2WebResourceResponseView Object" clsid="{4C0264E5-C49A-4B33-A3A1-AFE9B682601C}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2WebResourceRequest Object" clsid="{14C5B071-526F-46BA-A8B2-D6926DAF5FB6}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
<comClass description="EdgeWebView2NavigationStartingEventArgs Object" clsid="{3326D4EF-884E-4EF7-A61F-8E5AB4862990}" threadingModel="Apartment" tlbid="{D4278A43-021B-4C82-9C1F-D6A6FA39851C}"></comClass>
</file><!--End antview.ocx-->
[/CODE]
Seems to be working for me, at least so far...
Re: MS Edge WebView2 ActiveX wrapper
Or you could use the COM Manifest Studio to do that :rolleyes:
Re: MS Edge WebView2 ActiveX wrapper
[QUOTE=Nils G. Svedmyr;367734]Or you could use the COM Manifest Studio to do that :rolleyes:[/QUOTE]
That's probably better, yeah. But it didn't show up in my Googling of "SXS manifest register OCX", so I used what I could find easily...
Re: MS Edge WebView2 ActiveX wrapper
I see. You find it on [url]https://www.rdctools.com[/url] under Downloads. Or if you're interested of the latest version for 19.1, send me an email on nils dot svedmyr at rdctools.com.
Re: MS Edge WebView2 ActiveX wrapper
Re: MS Edge WebView2 ActiveX wrapper
Hi Chuck,
Thanks.
The documentation is written with more than just DataFlex in mind.. You might notice in the doc ([url]https://doc.antview.dev[/url] ) that none of the methods have the "Com" prefix.
In DataFlex we unfortunately have both OnCreate as well as OnComCreate...
The OnCreate is from the DataFlex framework whereas OnComCreate is from the control... On hindsight a tad confusing.
So yes, the documentation could use more work, no doubt about that (ha! .. we didn't even have doc on Saturday).
As far as the cache folder goes (or UserDataFolder), I'm in the process of adding an extra option there to change the default.
Right now you're getting Microsoft's default and while they are also working on changing that (see [url]https://github.com/MicrosoftEdge/WebView2Feedback/issues/1410[/url] ) waiting for that is probably not the best choice.
However as they are going to put the cache folder in another weird spot and as we don't know when that change will land... I'm adding a bit of logic for a default that will work better for most of us in the next update (around next week)
As a bit of background, earlier today I was playing with getting the control to work in MS Excel ( [url]https://twitter.com/wilva/status/1430864344234045440[/url] ) and that works, but .. the worksheet fires the onCreate and onActivate too early, you can't catch those events in the VBA script.
So I worked around that by using the user temp folder instead ( <usertemp>\{appname}.WebView2\ )
eg in this case:
'C:\Users\Wil\AppData\Local\Temp\EXCEL.EXE.WebView2\'
I think by using that naming scheme it will work better for most DataFlex developers than the current one which clutters up space in the program's folder.
--
Wil