Get Started
Documentation
Macros
More information
|
window.Asc.plugin.executeMethod("AddOleObject", [args], callback)Description
Defines the method that allows adding an OLE object to the document. Usage
This method should be used in the following way: window.Asc.plugin.executeMethod("AddOleObject", [data]); Where data is a JSON object of the following form: { "width" : number, "height" : number, "data" : "string", "guid" : "string", "imgSrc" : "string", "widthPix" : number, "heightPix" : number } The data object can have the following values:
Returns
The method returns the undefined value. Example
window.Asc.plugin.executeMethod("AddOleObject", [{"width": 70, "height": 70, "data": "{data}", "guid": "asc.{UUID}", "imgSrc": "{link}", "widthPix": 60 * 36000, "heightPix": 60 * 36000}]); |