Office.js Apps: Excel cannot find the home.html file

徘徊边缘 提交于 2020-01-05 09:26:16

问题


I'm trying to learn how to write Office.js apps. I did use the example given here. Manifest file, QuarterlySalesReportManifest.xml, I did change the value of SourceLocation element to "\MY-PC\MySharedApp" which is the location of the "home.html". I also placed QuarterlySalesReportManifest.xml in another folder, "\MY-PC\MyManifest" and added this folder as a share location that contains the manifest as a trusted app catalog in Excel.

When I try to run the app from Excel it seem the QuarterlySalesReportManifest.xml is recognized but it searches for Home.js file without success and give an error message

Cannot find 'file://my-pc/MySharedApp/Home.html?_host_info=Exc...
Make sure the path or internet address is correct.

I do not know where am doing wrong because the path entered is as i got from Windows Explorer. Any idea on this?


回答1:


While the add-in's manifest can be hosted on a file share (and thus served through the "file" protocol), the add-in itself has to be served through http/https. I'd recommend either hosting the file locally through IIS during development or using Visual Studio for developing your add-in.

Gabriel Royer - Developer on the Office Extensibility Team, MSFT



来源:https://stackoverflow.com/questions/33998519/office-js-apps-excel-cannot-find-the-home-html-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!