【发布时间】:2020-12-16 20:27:05
【问题描述】:
我制作了一个 Office JS 插件,使用
copyFrom(sourceRange: Range | RangeAreas | string, copyType?: Excel.RangeCopyType, skipBlanks?: boolean, transpose?: boolean): void;
此方法需要 Excel JS API 1.9,因此根据文档,它在 Office 365 上受支持。此外,我的插件使用了其他需要 Excel JS API > 1.1 的方法。 我想知道我的插件如何在仅支持 Excel JS API 1.1 的 Office 2016 中完全正常运行。请记住,我没有使用 isSetSupported() 方法进行运行时检查。 我希望我的插件只能在 Office 365 上运行。这对您有意义吗?我错过了什么吗?
【问题讨论】:
-
此运行时检查:如果 (Office.context.requirements.isSetSupported('ExcelApi', '1.9')) 在我的 Office 2016 - 2011 版本 Build 13426 中返回 true。是否有意义?根据文档,Office 2016 仅支持 Excel Js API 1.1
标签: excel office-js office-addins excel-addins