Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("EditOleObject", [args], callback)

Description

Defines the method that allows editing an OLE object in the document.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("EditOleObject", [data]);
Parameters
Parameter Description Type Example
data A JSON object which can have the following values:
  • width - the object width measured in millimeters,
    type: number,
    example: 70;
  • height - the object height measured in millimeters,
    type: number,
    example: 70;
  • data - OLE object data (internal format),
    type: string,
    example: "{data}";
  • objectId - an OLE object identifier,
    type: string,
    example: "1_001";
  • imgSrc - a link to the image (its visual representation) stored in the OLE object and used by the plugin,
    type: string,
    example: "./resources/image.png";
  • widthPix - the image width in pixels,
    type: number,
    example: 60 * 36000;
  • heightPix - the image height in pixels,
    type: number,
    example: 60 * 36000.
object
Returns

The method returns the undefined value.

Example
window.Asc.plugin.executeMethod("EditOleObject", [{"width": 70, "height": 70, "data": "{data}", "objectId": "1_001", "imgSrc": "./resources/image.png", "widthPix": 60 * 36000, "heightPix": 60 * 36000}]);