【问题标题】:Office.js: AddImage() not working in Excel online versionOffice.js:AddImage() 在 Excel 在线版本中不起作用
【发布时间】: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


    【解决方案1】:

    Shapes API 需要 Excel.js 1.9 版。您的 Excel 版本是否足够新以支持该版本?见Excel API Requirement Sets

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-29
    • 2018-06-15
    相关资源
    最近更新 更多