是否可以使用 Office.js 刷新 Word 文档的字段? [英] Is it possible to refresh fields of a word document with Office.js?

查看:66
本文介绍了是否可以使用 Office.js 刷新 Word 文档的字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Word 文档的字段显示自定义文档属性的值,如下所示:

I have word documents with fields that display the value of custom document properties as such:

`{ DOCPROPERTY example \* MERGEFORMAT }`

每当我的自定义属性被修改时,为了在我的文档中显示更改,我需要选择字段并右键单击 -> 更新它们.我想知道 office.js 是否有任何东西可以帮助我自动更新文档中的字段.

Whenever my custom property is modified, in order for the changes to be displayed in my document, I need to select the field(s) and right-click -> update them. I was wondering if office.js had anything that would help me automatically update fields in my document.

推荐答案

目前没有 API 可以做到这一点.但这是一个绝妙的主意.请在 Office 开发者意见箱 中提出建议.

There is no API to do this currently. But it is an excellent idea. Please suggest it at Office Developer Suggestion Box.

这篇关于是否可以使用 Office.js 刷新 Word 文档的字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆