Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 javascript office api 在 powerpoint 中插入图像。我尝试返回带有图像的 XElement 并将其插入,但它不起作用。
可以使用
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