You need to use the "OBJECT" tag. For example:
<OBJECT WIDTH="120" HEIGHT="150"
CLASSID="CLSID:F6E48B22-03A0-11D3-88F9-00000E98DD12"> </OBJECT>
Specify the size of the ActiveX control to WIDTH and HEIGHT, and set CLASSID to the value received from the following operation:
Open the "OLE" tab in the Form's properties dialog.
Click the "Set Class ID..." button in the dialog.
Click the "OK" button in the message box, with ignoring the caution.
You can see the CLASSID in the "Object CLASSID".
If the value of "Object CLASSID" indicates {409A0921-0793-11D3-88F9-00000E98DD12}, you code the HTML as follows:
<OBJECT WIDTH="120" HEIGHT="150" CLASSID="CLSID:409A0921-0793-11D3-88F9-00000E98DD12"> </OBJECT>
"{" and "}" are not required. Refer to documentation regarding W3C or HTML for details of "OBJECT" tag.
Notes
If you use ActiveX controls in an HTML document, test the application completely.
Specify the "Executable File" to be "Iexplore.exe" and set "CommandLine" to the name of the HTML document file name Including it's full-path in the "Run" tab of the module properties.
If the application abends or an error occurs, PowerCOBOL forces InternetExplorer to end the application. In this case, shut down the system using the Windows Task Manager, which is shown by "Ctrl+Alt+Delete" key, after ending all other applications. The reason for this is that the application modules may still be hooked by the system (e.g. DLL's may not be released by the operating system, and you will be unable to run the application subsequently or to re-link a newer version of the .DLL(s)).
You should not use a COBOL "DISPLAY" sentence in the event procedure of an ActiveX control.
The MultipleInstance property of a form specifies whether to allow execution of multiple instances of a form (whether two or more instances of an application that include the form are allowed to exist in a Windows system at the same time).