我刚刚收到了针对我提交的一个加载项的更改建议报告。它说Your add-in is not working in the Excel 2013 client on Windows 7 with Internet Explorer 11.
我一直在测试我的加载项Excel 2016
and Excel Online
。所以我刚刚安装了Excel 2013
(版本15.0.4841.1000
, 包括SP1 https://support.microsoft.com/en-us/kb/2817430),确实该加载项不起作用。但似乎没什么作用......
例如,下面的示例函数写入haha
在细胞中A1
under Excel Online
,然而,它没有任何作用Excel 2013
.
function test () {
Excel.run(function (ctx) {
var range = ctx.workbook.worksheets.getItem("Sheet1").getRange("A1");
range.values = [["haha"]];
return ctx.sync();
});
}
那么有谁知道 JavaScript API 是否支持Excel 2013
?如果没有,许多专业人士将无法使用加载项,因为他们仍然使用Excel 2013
...
PS:我看到办公商店需要很多插件Excel 2013 or later
or Excel 2013 Service Pack 1 or later
。如果 JavaScript API 不支持Excel 2013
,如何拥有这些插件(例如,)已开发?
Edit 1:在我的清单 xml 中:
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
In my Home.html
, 我有:
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
Edit 2:我想以下设置相当于说该加载项不应该用于Excel 2013
?
<Hosts>
<Host Name="Workbook" />
</Hosts>
<Requirements>
<Sets>
<Set Name="ExcelApi" MinVersion="1.2"/>
</Sets>
</Requirements>
<DefaultSettings>
...
</DefaultSettings>