Office JS Save and Close methods for Word, Excel and PowerPoint
Hello!
These are two features which we are extremely interested in. I've been asking in many Community Calls but I haven't had any ETAs yet, so hopefully posting here helps.
Please could we have a consistent method for Word, Excel and PowerPoint to save a file? Word and Excel have ‘context.document.save()’ and ‘context.workbook.save() but they lack similar options for behaviors (eg. skip the save dialogue). PowerPoint does not have context.presentation.save() yet. Please could we have an equivalent method for all three (Word, Excel, PowerPoint) with similar options/behaviors? This is really needed for developers. Please an ETA would be appreciated.
Similar to the previous question, could we have an equivalent method for all three (Word, Excel, PowerPoint) to close files with similar options/behaviors? This is also really needed for developers. Please an ETA would be appreciated.
Thank you so much in advance!
11 Comments
- Jaime_from_SynergyOSIron Contributor
Hello AdrianWu Yun_Wang, thank you for the updates! I just saw your responses (I did not get a notification). This is great. Do you have plans to add the same Save / Close API to PowerPoint? I think it is really important that the 3 applications have the same file (document, workbook, presentation) behaviour. Thank you!
- AdrianWu
Microsoft
Hi there! Thanks for the suggestion. Save/close workbook is also supported in Excel since Requirement Set 1.11. Please check the details below:
Thank you!!
- Yun_Wang
Microsoft
Please check out Word JavaScript API requirement set 1.5 - Office Add-ins | Microsoft Learn for Word Save and Close APIs. Thanks.
- ErnstScheithauerBrass Contributor
@lindalu-MSFT
This would be a great extension, not having these methods is a showstopper for many of our use cases - Jaime_from_SynergyOSIron Contributor
Muhammad_Ans unfortunately not...
If you are also interested in this functionality, please bring it up on the Microsoft Office Add-ins community call (https://docs.microsoft.com/en-us/office/dev/add-ins/overview/office-add-ins-community-call) so hopefully they implement it sometime soon.
- Muhammad_AnsCopper Contributor
Is there any Save API/Method available for saving power point slides?
- Jaime_from_SynergyOSIron Contributor
Hi Wenjun Gong do you have any update on this? Thank you, any progress would be much appreciated!
- guilhermeftzCopper Contributor
Those two features we will be extremely interested, i'am needing a lot of this feature.
- Jaime_from_SynergyOSIron Contributor
Hi Wenjun Gong,
Thank you for following up and asking. This is a key requirement for document/file automation through the Office JS Add-in platform.
For example, I have some files in Word and in PowerPoint that are used as templates. The end-user wants to make some automations (eg. include information in both the docx and pptx files), then save them programmatically to a cloud location as PDFs, and then close all editable local docx and pptx files automatically when the process finalizes without saving the local files.
We have many use cases like this (happy to tell you more information if you need it) and I am sure many other Office JS developers would welcome these save and close APIs. Today, we still need to maintain older COM/VSTO add-ins, only because we those APIs are not available in JavaScript yet.
Please let us know for any additional information you might need, we would really welcome that Microsoft adds those APIs.
Thank you,
Jaime
- Jaime_from_SynergyOSIron Contributor
Hi Wenjun Gong,
Thank you for following up and asking.
This is a key requirement for document/file automation through the Office JS Add-in platform.
For example, I have some files in Word and in PowerPoint that are used as templates. The end-user wants to make some automations (eg. include information in both the docx and pptx files), then save them programmatically to a cloud location as PDFs, and then close all editable local docx and pptx files automatically when the process finalizes without saving the local files.
We have many use cases like this (happy to tell you more information if you need it) and I am sure many other Office JS developers would welcome these save and close APIs. Today, we still need to maintain older COM/VSTO add-ins, only because we those APIs are not available in JavaScript yet.
Please let us know for any additional information you might need, we would really welcome that Microsoft adds those APIs.
Thank you,
Jaime