How to programmatically export/print to XPS - WordAPI

Raluca Minea 1 Reputation point
2021-06-22T17:22:47.5+00:00

Is it possible to export/print to XPS programmatically in an OfficeJS addin? Looking at the docs I see only 3 FileType enum members: https://learn.microsoft.com/en-us/javascript/api/office/office.filetype?view=word-js-1.3
Is there a reason other (fixed) formats are not supported?

In the Word web app I don't have the option so this might be a reason. By default, I can only see the export to PDF option.

Are there any plans to add XPS or any other formats in the future versions of WordAPI?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
863 questions
0 comments No comments
{count} votes