简体   繁体   English

获取正在使用的 Office 版本

[英]Get version of Office being used

I have an Office add-in for Microsoft Word.我有 Microsoft Word 的 Office 加载项。

For providing support to users and also for debugging, it would be very helpful to know the precise version of Office being used by my users.为了向用户提供支持以及调试,了解我的用户正在使用的 Office 的精确版本将非常有帮助。

Does the Office.js API include a way to get the Office version being used? Office.js API 是否包含获取正在使用的 Office 版本的方法? I did not see that in the API documentation.我在 API 文档中没有看到这一点。

You can use Office.context.diagnostics.platform property to identify the host platform.您可以使用Office.context.diagnostics.platform属性来识别主机平台。 And you also will be interested in the Office.context.diagnostics.version property which returns the version.您还会对返回版本的Office.context.diagnostics.version属性感兴趣。

Read more about other alternative ways on the Neat ways to get environment (ie Office version) thread.Neatways to get environment(即 Office 版本)线程上阅读有关其他替代方法的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM