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?

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments
{count} votes

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.