version Attribute
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

version Attribute

Office 2007

Specifies the ActiveX control version number.

Type

xsd:string

Parent Elements

ElementDescription
allowedControlSpecifies the ActiveX controls that are allowed to be instantiated.

Definition

<xsd:attribute name="version" type="xsd:string" use="optional"></xsd:attribute>

Remarks

If the clsid attribute for an ActiveX control is included in the allowedControl element in a form definition file (.xsf), but the control is not installed on the user's computer, the control will be installed automatically if the cabFile attribute for the control is present and the CAB file is present in the form template file (.xsn) or in the same directory as the form definition file. If the control is already installed on the user's computer but is an earlier version than the one listed in the version attribute, the install process still will initiate if the CAB file for the control is present. If the CAB file is not present for some reason or the installation fails or is stopped, the form will not open.

Example

The following is an example of the version attribute as it is used in the allowedControl element:

<xsf:permissions>
  <xsf:allowedControl 
        cabFile="{84F32C01-78D8-4B93-8ED4-106DA70224C2}.cab” 
        clsid="{84F32C01-78D8-4B93-8ED4-106DA70224C2}" 
        version=”1,0,0,1”/>
  <xsf:allowedControl 
        clsid="{F08DF954-8592-11D1-B16A-00C0F0283630}"/>
</xsf:permissions>


Show:
© 2016 Microsoft