使用 Office.js 从 Excel 加载项创建 Word 文档
Creating Word document from Excel Add-In with Office.js
是否可以从 office.js
中编写的 Excel 加载项创建 .docx
文件?
我的用例是打开一个 Excel 文件(在 Windows 上,因此主机是一个 Excel 应用程序),打开加载项和加载项根据 Excel 文件中的数据创建一个 Word 文档。
据我所知,无法从 Excel 加载项内部调用 Word.run()
宿主函数。我总是会收到命名空间 Word
未知的错误消息。
这甚至是 'cross-host calls' 的预期功能吗?
我有几乎相同的问题: 得到了答案:
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.
最后我又回到了 VSTO 和 C#
是否可以从 office.js
中编写的 Excel 加载项创建 .docx
文件?
我的用例是打开一个 Excel 文件(在 Windows 上,因此主机是一个 Excel 应用程序),打开加载项和加载项根据 Excel 文件中的数据创建一个 Word 文档。
据我所知,无法从 Excel 加载项内部调用 Word.run()
宿主函数。我总是会收到命名空间 Word
未知的错误消息。
这甚至是 'cross-host calls' 的预期功能吗?
我有几乎相同的问题:
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.
最后我又回到了 VSTO 和 C#