【发布时间】:2019-11-12 12:29:04
【问题描述】:
我正在尝试使用 Office.js 从 Excel 添加新图像。
这是我的代码:
image = activeWorkSheet.shapes.addImage(imageBase64);
await context.sync();
// set some image properties
这是失败的错误:
RichApi.Error: This operation is not implemented.
at new c (https://appsforoffice.microsoft.com/lib/1/hosted/excel-web-16.00.js:24:287800)
at a.e.processRequestExecutorResponseMessage (https://appsforoffice.microsoft.com/lib/1/hosted/excel-web-16.00.js:24:348351)
at https://appsforoffice.microsoft.com/lib/1/hosted/excel-web-16.00.js:24:346456
我也尝试过使用“Imagecoercion”,但这似乎不受支持,事实上,我无法使用它:https://github.com/OfficeDev/office-js/issues/648。
我错过了什么吗?
【问题讨论】:
标签: javascript office365 office-js office-addins excel-addins