2

Is it possible to create a .docx file from an Excel Add-In written in office.js?

My use case would be to open an Excel file (on Windows, so the host is an Excel Application), open the Add-In and the Add-In creates a Word document based on data within the Excel file.

From the things that I've seen, it is not possible to call the Word.run() host function from inside a Excel Add-In. I will always get an error that the namespace Word is unknown.

Is this even an intended feature to make 'cross-host calls'?

1 Answer 1

1

I had almost the same question: How to get the active PowerPoint presentation from Excel in office.js? and got the answer:

An Office add-in can only work with the Office application (Excel, Word, PowerPoint, etc.) in which it is open. It cannot reach outside the Office application to work with a document in another Office application.

Eventually I moved back to VSTO and C#

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.