Aspose::Cells::Drawing::OleObject::SetEmbeddedObject method

OleObject::SetEmbeddedObject(bool, const Vector <uint8_t>&, const U16String&, bool, const U16String&) method

Sets embedded object data.

void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const U16String &sourceFileName, bool displayAsIcon, const U16String &label)
ParameterTypeDescription
linkToFileboolIndicates whether the object links to the file. If true, the parameter objectData is ignored.
objectDataconst Vector <uint8_t>&The embedded object data.
sourceFileNameconst U16String&The file name.
displayAsIconboolIndicates whether diplaying object as an icon. If true, the orginal image data will be covered by icon.
labelconst U16String&The icon label. Only works when displayAsIcon as true.

See Also

OleObject::SetEmbeddedObject(bool, const Vector <uint8_t>&, const char16_t*, bool, const char16_t*) method

Sets embedded object data.

void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const char16_t *sourceFileName, bool displayAsIcon, const char16_t *label)
ParameterTypeDescription
linkToFileboolIndicates whether the object links to the file. If true, the parameter objectData is ignored.
objectDataconst Vector <uint8_t>&The embedded object data.
sourceFileNameconst char16_t*The file name.
displayAsIconboolIndicates whether diplaying object as an icon. If true, the orginal image data will be covered by icon.
labelconst char16_t*The icon label. Only works when displayAsIcon as true.

See Also

OleObject::SetEmbeddedObject(bool, const Vector <uint8_t>&, const U16String&, bool, const U16String&, bool) method

Sets embedded object data.

void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const U16String &sourceFileName, bool displayAsIcon, const U16String &label, bool updateIcon)
ParameterTypeDescription
linkToFileboolIndicates whether the object links to the file. If true, the parameter objectData is ignored.
objectDataconst Vector <uint8_t>&The embedded object data.
sourceFileNameconst U16String&The file name.
displayAsIconboolIndicates whether diplaying object as an icon. If true, the orginal image data will be covered by icon.
labelconst U16String&The icon label. Only works when displayAsIcon as true.
updateIconboolIndicates 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

OleObject::SetEmbeddedObject(bool, const Vector <uint8_t>&, const char16_t*, bool, const char16_t*, bool) method

Sets embedded object data.

void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const char16_t *sourceFileName, bool displayAsIcon, const char16_t *label, bool updateIcon)
ParameterTypeDescription
linkToFileboolIndicates whether the object links to the file. If true, the parameter objectData is ignored.
objectDataconst Vector <uint8_t>&The embedded object data.
sourceFileNameconst char16_t*The file name.
displayAsIconboolIndicates whether diplaying object as an icon. If true, the orginal image data will be covered by icon.
labelconst char16_t*The icon label. Only works when displayAsIcon as true.
updateIconboolIndicates 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