问题
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.
回答1:
You could access the external Excel file using the Microsoft Graph web services. You can find details about how to do this here.
来源:https://stackoverflow.com/questions/40100876/load-excel-file-in-ms-word-add-in-with-office-js