Office.context.document.settings added to word document using the desktop mode word is not available when the document is opened in web mode word.

Praveenkumar Rajan 1 Reputation point
2020-09-22T07:27:55.543+00:00

Hi Team,

We are saving some properties of the word document using the desktop mode as follows:

Office.context.document.settings.set("property","value");

It is available in the desktop mode word document.

If the same document is opened using the web mode word, the values are not present. The code used is as follows:

Office.context.document.settings.refreshAsync((asyncResult) => {
if (asyncResult.status == Office.AsyncResultStatus.Succeeded) {
const docId = asyncResult.value.get("property");
Kindly provide inputs on how the issue can be resolved.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,751 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,636 Reputation points
    2020-09-23T01:25:57.367+00:00

    @Praveenkumar Rajan ,

    Issues with tag of "office word itpro" focus more on general questions of Word desktop app. You issue is related to code which is not supported on Q&A, it's best to ask this question on Word for Developers forum.

    I would also remove this tag, and add "not supported".

    Thanks for your understanding.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.