Reflection ActiveX Control

image\rwnprg32.gif StartupMacro property



object.StartupMacro = Value

Data type




Returns (first syntax line) or specifies (second syntax line) the name of a macro in the settings file that should be run when Reflection starts. This property is only relevant if the control is using a settings file. You can designate a start up settings file using StartupSettings.

If you have added a control to a Visual Basic form, you can set the value of this property by selecting the control on your form and using the Properties window.

If you are creating a control on a web page, use the following syntax. (The Class ID used here is for Reflection for HP. Click here for information about ClassIDs for other Reflection products.)

<OBJECT ID ="R1winCtrl"


 <PARAM NAME="StartupSettingsFile" VALUE="C:\Demo\MyFile.r2w">

 <PARAM NAME="StartupMacro" VALUE="MyMacro">



· You can also configure the Reflection ActiveX control to run macros using the RunMacro method. Macros specified using StartupMacro run before the Reflection control appears in the browser window. Macros executed using RunMacro always run after the control has appeared in the browser.


image\popup.gif Related Topics