Word Javascript api,更新设置xml [英] Word Javascript api, update setting xml

查看:110
本文介绍了Word Javascript api,更新设置xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更新单词设置xml以添加文档变量,使用javascript api。?

How can i update the word setting xml to add Document variables,  using javascript api.?

谢谢

Vimal

关注Vimal

推荐答案

嗨Vimal,

Hi Vimal,

你的意思是什么"文件变量"?  据我所知,我们可以使用settings.set方法添加/更新设置。 

What did you mean the "document variables"?  As far as I know, we can add/update the settings using the settings.set method. 

以下是添加/更新设置的代码:

And here is the code to add/update the settings:

 function setSettings() {
        Office.context.document.settings.set("mySetting", "mySetting value");
    }

    function changeSettings() {
        Office.context.document.settings.set("mySetting", "change mySetting value");
    }


问候& Fei

Regards & Fei


这篇关于Word Javascript api,更新设置xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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