This documentation is archived and is not being maintained.

allowedFileTypes attribute

Office 2007

Specifies the file name extensions of files that can be attached to the form.

Type

xsd:string

Parent Elements

ElementDescription
editWithSpecifies an instance of an editing component, and provides the corresponding parameters to determine its exact behavior.

Definition

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

Remarks

The file extensions listed in the allowedFileTypes attribute value are separated by commas.

Example

<xsf:xmlToEdit name="some_name"   item="/my:myFields/my:field1">
 <xsf:editWith allowedFileTypes="doc, xls" component="xFileAttachment"/>
</xsf:xmlToEdit>
 
<menuArea name="msoStructuralEditingContextMenu">
 <button action="xFileAttachment::attach" xmlToEdit="some_name" caption="Attach..." showIf="immediate" />
 <button action="xFileAttachment::open" xmlToEdit="some_name" caption="Open" showIf="immediate" />
 <button action="xFileAttachment::saveAs" xmlToEdit="some_name" caption="Save As..." showIf="immediate" />
 <button action="xFileAttachment::remove" xmlToEdit="some_name" caption="Delete file" showIf="immediate" />
</menuArea>


Show: