EditOleObject(data, data.data, data.imgSrc, data.objectId, data.width, data.height, data.widthPix, data.heightPix)

Edits an OLE object in the document.


Name Type Description
data Object

The OLE object properties.

data.data string

OLE object data (internal format).

data.imgSrc string

A link to the image (its visual representation) stored in the OLE object and used by the plugin.

data.objectId string

The OLE object identifier.

data.width number

The OLE object width measured in millimeters.

data.height number

The OLE object height measured in millimeters.

data.widthPix number

The OLE object image width in pixels.

data.heightPix number

The OLE object image height in pixels.


This method doesn't return any data.


Copy code
var _param = {
    "data": "{data}",
    "imgSrc": "https://link-to-the-image.jpg",
    "objectId": "5_556",
    "width": 70,
    "height": 70,
    "widthPix": 60 * 36000,
    "heightPix": 60 * 36000
window.Asc.plugin.executeMethod ("EditOleObject", [_param], function () {
    window.Asc.plugin.executeCommand ("close", "");