使用 Office.js 在 MS Word 加载项中加载 Excel 文件 [英] Load Excel file in MS Word Add-in with Office.js

查看:28
本文介绍了使用 Office.js 在 MS Word 加载项中加载 Excel 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 MS Word 创建一个加载项,我可以在其中从某种文件选择器中选择一个 excel 文件,然后使用该数据在 word doc 中生成多个页面(发票).问题是,我似乎无法弄清楚在加载项中加载外部 Office 文件需要什么语法.感谢您的任何指示.我在使用 Office 2016 的 Mac 上,所以 VBA 几乎是不可能的.

I am trying to create an add-in for MS Word where I can choose an excel file from some kind of file picker and then use that data to generate multiple pages (invoices) in the word doc. The problem is, I can't seem to figure out what syntax I need to load an external Office file in the Add-in. Thanks for any pointers. I am on a mac with Office 2016 so VBA is pretty much out of the question.

推荐答案

您可以使用 Microsoft Graph Web 服务访问外部 Excel 文件.您可以在此处找到有关如何执行此操作的详细信息.

You could access the external Excel file using the Microsoft Graph web services. You can find details about how to do this here.

这篇关于使用 Office.js 在 MS Word 加载项中加载 Excel 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆