-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set document name using office.js API #4522
Comments
hi @ishanig11 thanks for reaching out. So far for Word there is no direct API to set the file name, but if your document is a new file and hasn't be saved, then you can use the second parameter of document.save() API to provide and set a file name. See here for details: https://learn.microsoft.com/en-us/javascript/api/word/word.document?view=word-js-preview#word-word-document-save-member(1). For any other new API requests, we track Office Add-in feature requests on our Microsoft 365 Developer Platform Ideas Forum. Please add your request there and we will triage accordingly. thanks. |
@jipyua : I perform following steps:
|
@jipyua : Any update on above question? |
@ishanig11 at this case, I am afraid so far there is no way to change the name. As mentioned earlier, that will be a new feature request. We track Office Add-in feature requests on our Microsoft 365 Developer Platform Ideas Forum. Please add your request there and we will triage accordingly. thanks. |
This is really blocker feature. |
Hi @ishanig11 Sorry for that. We recommend you to upvote a Tech Community Ideas item, this will give us visibility of the commonality of it and will help with our prioritization. If we end up working on this issue, we will re-activate as needed. Thanks. |
Hi,
I am loading file in office active context application using API context.document.body.insertFileFromBase64.
After file load, want to set file name. Currently default filename get set. Refer below screenshot.
Can you tell me how we can set file name to office applications like Word, Excel and Powerpoint?
The text was updated successfully, but these errors were encountered: