Using the Controls in Different Environments
- Last UpdatedNov 17, 2021
- 1 minute read
There are two versions for each of the AVEVA Historian Client controls: one for use within a ActiveX control containers and another for within .NET containers. ActiveX control containers include Visual Interdev, Visual Basic, Visual C++, InTouch HMI software, and so on. .NET containers include VB.NET, C#, ASP.NET, and so on.
The ActiveX versions are named according to the following convention:
aaHistClientXXX Control
The .NET versions are named as follows:
ArchestrA.HistClient.UI.aaXXXControl
For example, the Trend control is implemented as two versions: aaHistClientTrend Control and ArchestrA.HistClient.UI.aaTrendControl.
If a container supports both .NET and ActiveX controls, such as Internet Explorer, use the .NET version, since that is the native form of the controls for the AVEVA Historian Client software. Embedding the ActiveX versions of the controls in Internet Explorer is not recommended. If you are using Visual Interdev, manually edit the HTML to use the .NET version of the control.
The following HTML example shows how to embed the .NET control on an HTML form:
<html>
<body>
<object id="Trend1" classid="http:aaHistClientUI.dll#ArchestrA.HistClient.UI.aaTrendControl"
height="300" width="300" VIEWASTEXT></object>
</body>
</html>
ActiveX controls that are embedded in HTML are loaded if you launch the .htm file within Windows Explorer (that is, if the URL starts with file://). However, a URL that starts with file:// does not load .NET controls. You must use http://, which means you must create a web share for the folder in which the .htm file resides.