Installation

In order to install the AntView control, you will need to register it with Windows.

The installer does register both the 32 bit as well as the 64 bit controls on your behalf.

Demo installation

When you run the installer, it will install a DataFlex demo workspace for you in your local Documents folder.
For example on my system it installs the demo under:
C:\Users\Wil\Documents\AntView

WebView2 Runtime

As the control depends on the MS Edge WebView2 control, you also have to install the WebView2 runtime in order to get this to work.

WebView2 can be installed via a few different means:
There’s the nuget package: https://www.nuget.org/packages/Microsoft.Web.WebView2
There’s also the more standard windows installer for installing the WebView2 runtime: https://developer.microsoft.com/en-us/microsoft-edge/webview2/

We recommend the Evergreen Bootstrapper.

You can install the WebView2 runtime on the following versions of Windows.

  • Windows 10
  • Windows 8.1
  • Windows 7
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows Server 2008 R2

After installing the runtime. There is one additional requirement for being able to use the WebView2 control in your applications. You’ll need to locate the file WebView2Loader.dll from the nupkg file and put it in your application’s binary path. There’s a 32 bit and 64 bit variant of this file. Note that the 32 bit and 64 bit versions have the same filenames.
Our demo has the WebView2Loader.dll from WebView2 runtime 1.0.864 already in the Programs folder.

Use in the Studio

For being able to use the control in the Studio you will also need to copy the WebView2Loader.dll into the Studio bin folder, so that you do not get an error when you use the control in the designer.

64 bit support

You can use our AntView control in your 64 bit applications!
In order to do so, copy the WebView2Loader.dll from the x64 subfolder to the folder of your binary. That’s it!

Installation steps for deploy

  • Copy the AntView.ocx control locally to your customer’s filesystem.
  • Start a command prompt (or Windows Powershell) as administrator
  • Navigate to the folder that contains the .ocx
  • Run the command: regsvr32 -i AntView.ocx

The better way is to use an installer which can take care of registering the activex control for you.