OLEObject Element (Microsoft Office)

Defines how an OLE object is stored.

Attribute Description
Type Defines how the OLE data relates to the file. Required. Values include:
LinkThe data is linked; that is, the data is not stored with the file, but is accessible by a link.
EmbedThe data is embedded; that is, the data is stored with the file.
ObjectID Defines the ObjectID of the object, that is, string that identifies where the object stands in the object storage hierarchy. The string may resemble a number but is not required to do so, and may contain an underscore at the beginning.
ProgID Defines the ProgID of the object; that is, a human-readable name that is identified with the particular object.
DrawAspect

Defines how the object will be portrayed. Values include:
ContentThe data will be displayed by the object server. For example, if the object is a drawing, the actual drawing will be displayed.
IconOnly an icon will be displayed.

CLSID Defines the OLE Class ID; that is, a GUID that uniquely defines the object. Not required.
Moniker Defines the OLE moniker, that is, the manner in which the object may be found if it is linked. Required if Type is set to Embed.
UpdateMode Defines how linked data is updated. Required if Type is set to Embed. Values include:
Always The data is updated every time the file is opened.
OnCallThe data is updated only if the user requests it through a refresh.
ShapeID Defines the Shape ID, that is, an ID that is used if the object can be stored as an Microsoft OfficeArt Shape (using VML).
LockedField Defines whether the field is locked for Microsoft Word. The default value is False.
LinkType Defines the type of link for Microsoft Word. Required if Type is set to Link. Values include:
Picture The data is a picture.
BitmapThe data is a bitmap.
Shape Defines the Shape name if the shape is stored in Microsoft Word.

Contained In

WebChart (Microsoft Excel)

Remarks

The OLEObject element defines where the OLE data is stored. See the Microsoft Platform SDK for more information about OLE.

See Also

OLEClientData (Microsoft PowerPoint), ClientData (Microsoft Excel)

Example

A Microsoft Excel worksheet is embedded in a Microsoft Word document.


   <o:OLEObject Type="Embed" ProgID="Excel.Sheet.8"
   ShapeID="_x0000_i1032" DrawAspect="Content" ObjectID="_989231762">
   </o:OLEObject>