Skip to content

Word close API not working #4578

@ishanig11

Description

@ishanig11

Hi,

I am using following code to close document from online Word.
await Word.run(async (context) => {
context.document.close();
});

But document is not getting closed. Also I checked if environment support requirement set. Office.context.requirements.isSetSupported('WordApi', 1.5) , this value is true.

So it should work. Can you please tell me if I am missing anything,

Metadata

Metadata

Labels

Area: WordIssue related to Word add-insNeeds: author feedbackWaiting for author (creator) of Issue to provide more infoStatus: no recent activityIssue or PR is stale (no recent activity)Type: doc bugProblem with the documentation (e.g., doc is out of date, unclear, confusing, or broken)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions