Skip to main content

OLEObjectData

The OLE object data.

Properties

NameTypeDescription
ApplicationIdstringAn identifier of the plugin which can edit the current OLE object and must be of the asc.{UUID} type.
DatastringOLE object data (internal format).
HeightnumberThe OLE object height measured in millimeters.
HeightPixnumberThe OLE object image height in pixels.
ImageDatastringAn image in the base64 format stored in the OLE object and used by the plugin.
InternalIdstringThe OLE object identifier which is used to work with OLE object added to the document.
ParaDrawingIdstringAn identifier of the drawing object containing the current OLE object.
WidthnumberThe OLE object width measured in millimeters.
WidthPixnumberThe OLE object image width in pixels.

Type

Object

Example

let oleObjectData = {
"Data": "{data}",
"ImageData": "data:image/png;base64,image-in-the-base64-format",
"ApplicationId": "asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}",
"Width": 70,
"Height": 70,
"WidthPix": 60 * 36000,
"HeightPix": 60 * 36000
};
window.Asc.plugin.executeMethod("InsertOleObject", [oleObjectData, true]);