Is there support for creating .rtf files using the Word JS API?

G6574567 0 Reputation points
2024-09-23T19:48:51.27+00:00

I am developing a Word add-in and it doesn't look like there is support in the Word JS API to create an .rtf file and open it like you could in a COM add-in. What I am trying to do is use the contents of an .rtf file, create a new document from that, and open it in Word.

I know this method in the docs allows you to create a new document but only for the .docx file type. Is there a way to create .rtf files? And if not, will this be supported in the future?

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
840 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
982 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,891 questions
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.