OleObject.SetEmbeddedObject

SetEmbeddedObject(bool, byte[], string, bool, string)

Sets embedded object data.

public void SetEmbeddedObject(bool linkToFile, byte[] objectData, string sourceFileName, 
    bool displayAsIcon, string label)
ParameterTypeDescription
linkToFileBooleanIndicates whether the object links to the file. If true, the parameter objectData is ignored.
objectDataByte[]The embedded object data.
sourceFileNameStringThe file name.
displayAsIconBooleanIndicates whether diplaying object as an icon. If true, the orginal image data will be covered by icon.
labelStringThe icon label. Only works when displayAsIcon as true.

See Also


SetEmbeddedObject(bool, byte[], string, bool, string, bool)

Sets embedded object data.

public void SetEmbeddedObject(bool linkToFile, byte[] objectData, string sourceFileName, 
    bool displayAsIcon, string label, bool updateIcon)
ParameterTypeDescription
linkToFileBooleanIndicates whether the object links to the file. If true, the parameter objectData is ignored.
objectDataByte[]The embedded object data.
sourceFileNameStringThe file name.
displayAsIconBooleanIndicates whether diplaying object as an icon. If true, the orginal image data will be covered by icon.
labelStringThe icon label. Only works when displayAsIcon as true.
updateIconBooleanIndicates whether automatically updating icon.

Remarks

As Aspose can update embedd all file icons, so it’s better that you can add correct icon with updateIcon as false.

See Also