July 14, 2022
Release of version 1.1.200
New functionality:
AntView interface
New AntViewFrame interface for directly interacting with iframes.
Properties:
Methods:
Events:
- OnContentLoading
- OnContentLoadingHex
- OnDestroy
- OnDestroyed
- OnDOMContentLoaded
- OnDOMContentLoadedHex
- OnExecuteScript
- OnNameChanged
- OnNavigationCompleted
- OnNavigationCompletedHex
- OnNavigationStarting
- OnWebMessageReceived
Added AntViewNavigationStartEventArgs2 for extending the navigation structure data:
- AdditionalAllowedFrameAncestors, which is used by iframes.
AntViewDocument interface
- FrameDispatch, this method allows you to connect the document interface to an iframe object.
AntViewDownloadOperation interface
- OnDestroy event
AntViewWebResourceResponseView interface
- OnDestroy event
Bugfix/Changed behavior
The Synchronous methods from the document interface cannot be run from within an event due to the nature of how it works. This now returns an error indicating the reason instead of just locking up.
Fixed AntViewNavigationStartEventArgs.RequestHeaders. See the following forum post for details about the bug report: VB6: NavigateWithWebResourceRequest method without headers
Returning a boolean value via runAnonymousFunction would crash the control. This has been fixed by supporting boolean return values and casting that to a string. In addition the exception handling on this was extended so that the control no longer crashes if it cannot cast the result to a string.
OnPermissionRequested was broken as state did not work as expected. For more details see OnPermissionRequested from Powerbuilder
June 7, 2022
Release of version 1.1.175
Minor update.
In the past the AntView control would not work when you run under an old compatibility mode. For example if you run your Visual Basic IDE in Windows XP compatibility mode then the control would not work as Windows XP is not a supported environment for WebView2. Setting the compatibility mode now no longer blocks the control from working.
May 27, 2022
Release of version 1.1.174
Bug Fix/Changed behavior
- Setting UserAgent property is now also cached, so that you can set it before the WebView2 control has been created.
- NavigateWithWebResourceRequest now supports setting headers.
New functionality:
The AntViewDocument interface now has synchronous wrapper functions for each asynchronous function available. This makes it easier to use as well as opens this functionality to environments such as PowerBuilder and OpenText Gupta Team Developer.
- RequestCurrentHtmlSync
- RequestElementValueByIdSync
- RequestElementValueByNameSync
- RequestFormSubmitByIdSync
- RequestFormSubmitByNameSync
- RunAnonymousFunctionSync
- SetElementValueByIdSync
- SetElementValueByNameSync
- SynchronousTimeOut property
Demo
- The DataFlex demo has a new postData view.
- Added a demo for PowerBuilder users.
May 11, 2022
Release of version 1.1.164 beta
Changes, the following 3 items are described in “Important Changes in AntView 1.1“.
Please read that article when you are upgrading!
- Changed the default value of the CreateWebViewOnCreate property from “True” to “False”.
- Changed OnNavigationCompleted and OnFrameNavigationCompleted event as both where missing the NavigationId parameter.
- Changed all IUnknown method parameters from IUnknown to the exact interface so that VB6 can use that.
New functionality:
Added an extra set of methods & events for VB6 as it does not have Int64 support.
Other environments such as Visual FoxPro and PowerBuilder also benefit from this.
For the events you have to set the EventsUseHexadecimal property to switch to use VB6 compatible events.
- OnNavigationCompletedHex
- OnFrameNavigationCompletedHex
- OnContentLoadingHex
- EventsUseHexadecimal
- NextFocusWindowHandleUInt
- PreviousFocusWindowHandleUInt
Also added for VB6 an alternative method for the CurrentBrowser property in the AntViewDocument interface via new method BrowserDispatch, which then can be connected via the new property IDispatchPointer.
New properties
- DownloadDialogCornerAlignment
- AdditionalBrowserArguments
- AllowSingleSignOnUsingOSPrimaryAccount
- Language
- TargetCompatibleBrowserVersion
New methods
New events:
- OnDownloadStarting (download management)
- OnNewWindowRequested (new window event handling)
- OnPermissionRequested (permission request handling)
- OnClientCertificateRequested (client certificate support)
- OnProcessFailed (failure handling)
- OnPrintToPdfCompleted (Pdf printing completed)
GlobalAntView: a global object to use for applying global default settings for all your AntView controls to use:
- CreateWebViewOnCreate
- EventsUseHexadecimal
- UnlockControl
- UserDataFolder
- WebView2LoaderPath
- AdditionalBrowserArguments
- AllowSingleSignOnUsingOSPrimaryAccount
- Language
- TargetCompatibleBrowserVersion
Demo
We now have created a new excel file per demo and added dynamic resizing on startup so that the demo looks good at 100% DPI as well as at 150% DPI.
Added a Visual Basic 6 demo.
March 9, 2022
Release of version 1.0.111-2
The Excel file demo was corrupted.
As a result we now have re-released 1.0.111 with the Excel demo from 1.0.89 as a quick fix.
The AntView control itself hasn’t changed.
March 8, 2022
Release of version 1.0.111
Bug Fix
- Fix for fullscreen switch, when you switch back it would show a title bar in the control, this was not the intention.
New functionality:
- WebView2LoaderPath
- BrowserAcceleratorKeysEnabled
- GeneralAutofillEnabled
- PasswordAutosaveEnabled
- PrintToPdf
Demo
- The DataFlex demo shows how-to use PrintToPdf in EdgeWebBrowserDemo.vw
- The DataFlex demo now has prettier buttons.
- The Excel demo was designed for high DPI (at 150% DPI) and that made it look really weird on 100% DPI. Screens have been adjusted to 100% DPI.
- The Excel demo has a new form that shows how-to dynamically create the browser control.
- There’s a very early example on how-to use the control in Visual Fox Pro.
Various changes:
- We’re now bundling the WebView2loader.dll version 1108.44, we strongly recommend to use this newer dll.
- When the WebView2loader dll is loaded, it will now check on loading if the bitness matches. If the control tries to load a 64 bit DLL in a 32 bit process it will now show a clear error message. Same for trying to load a 32 bit DLL in a 64 bit process.
- When you enable logging it will now log more details and on errors it will log the windows error.
- Several properties were ignored if set/get before the WebView2 control was loaded. This is now addressed for the following properties: DefaultContextMenusEnabled, BrowserAcceleratorKeysEnabled, BuiltInErrorPageEnabled, DefaultScriptDialogsEnabled, DevToolsEnabled, ScriptEnabled, StatusBarEnabled, WebMessageEnabled, ZoomControlEnabled.
- A demo license is now only installed when using the installer. This helps to make it more clear if the control is properly licensed during deploy.