如何在任务窗格应用程序中使用OfficeJ来获取/读取自定义文档属性?

如何在任务窗格应用程序中使用OfficeJ来获取/读取自定义文档属性?

问题描述:

我已从服务器和任务窗格应用程序中打开文档时添加了自定义文档属性"TemplateId",我想获取此使用OfficeJs的自定义文档属性(参见图片).

I have added custom document property "TemplateId" from server and in task pane app when the document opens I want to fetch this custom document property (see image) using OfficeJs.

(使用OfficeJs 1.1版)

(using OfficeJs version 1.1)

当前没有允许您读取自定义文档属性的OfficeJS API.但是,请随时在 Office可扩展性平台的UserVoice中请求一个.

There currently no OfficeJS APIs that allows you to read custom document properties. However, feel free to request one on the Office Extensibility Platform's UserVoice.

Gabriel Royer-MSFT Office可扩展性团队的开发人员

Gabriel Royer - Developer on the Office Extensibility Team, MSFT