【问题标题】:Javascript office api insert image in powerpointJavascript office api在powerpoint中插入图像
【发布时间】:2016-03-08 09:24:32
【问题描述】:

我正在尝试使用 javascript office api 在 powerpoint 中插入图像。我尝试返回带有图像的 XElement 并将其插入,但它不起作用。

【问题讨论】:

    标签: javascript openxml office-js openoffice-api


    【解决方案1】:

    可以使用

    Office.context.document.setSelectedDataAsync(result, {
                                coercionType: Office.CoercionType.Image,
                                imageLeft: 50,
                                imageTop: 50,
                                imageWidth: 100,
                                imageHeight: 100
                            });
    

    但 Office.CoercionType.Image 仅适用于 Office 365 ProPlus 版本 16.0.6741.2014

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-17
      • 1970-01-01
      • 1970-01-01
      • 2017-03-13
      • 1970-01-01
      • 2022-06-10
      • 1970-01-01
      相关资源
      最近更新 更多