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.

<HTML>

<HEAD>

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

</HEAD>

 

<BODY>

 

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

 

<OBJECT ID ="RHP"

 CLASSID="clsid:15B168AD-AD3C-11D1-A8D8-00A0C9200E61"

 WIDTH=600

 HEIGHT=400>

</OBJECT>

 

 

</BODY>

</HTML>

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:
7D3AFC5D-6CFF-4E1F-9C41-033422F85734

· Reflection for HP:
15B168AD-AD3C-11D1-A8D8-00A0C9200E61

· Reflection for UNIX and OpenVMS:
15B168B2-AD3C-11D1-A8D8-00A0C9200E61

· Reflection for ReGIS Graphics:
15B168B7-AD3C-11D1-A8D8-00A0C9200E61

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:

<OBJECT ID ="RUDCtrl"

 CLASSID="clsid:15B168AD-AD3C-11D1-A8D8-00A0C9200E61"

 WIDTH="600"

 HEIGHT="400">

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

</OBJECT>

Optional Reflection Control Parameters

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

Parameter

Description

StartupSettingsFile

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.

StartupMacro

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

ControlID

Specifies a unique session ID for the Reflection control.

InWebBrowser

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.