Running Reflection as an ActiveX Control

image\rusing32.gif Adding a Reflection ActiveX Control to a Web Page


To include Reflection in a web page requires HTML source code that identifies the Reflection control and specifies other, optional parameters that should be used when the object is loaded.

The following example creates a web page that includes a Reflection for HP control.



<TITLE>Reflection for HP ActiveX Sample Code</TITLE>





<H1>Reflection for HP ActiveX Demo </H1>











Class IDs for Reflection products

The Object tag is used to specify the ActiveX control ID, its placement in the web page, and the control Class ID. The Object ID is used to reference the object elsewhere in the HTML source code.

The following ClassIDs are used, for Reflection products:

· Reflection for IBM:

· Reflection for HP:

· Reflection for UNIX and OpenVMS:

· Reflection for ReGIS Graphics:

Optional Parameters

The parameters following the OBJECT tag are unique to the Reflection ActiveX control. They can be used to specify desired actions when Reflection is started in a web page. Use of these parameters is optional. Refer to the table below for a list of available parameters. In the following example, the StartupSettingsFile parameter is used to load a settings file located on the user's PC:





 <PARAM NAME="StartupSettingsFile" VALUE="C:\Test\Demo.r1w">


Optional Reflection Control Parameters

The following parameters are available to control the configuration of the Reflection ActiveX control:




Specifies the name of a settings file to load at startup. Use complete path information. If no settings file is specified or the file that is specified doesn't exist, Reflection starts with default values.


Specifies the name of a macro in the settings file that should be run when Reflection starts.


Specifies a unique session ID for the Reflection control.


Specifies whether the control is being used within a browser. The value determines if Reflection will display exiting dialog boxes or not. Values are True or False.