Office 2013 JavaScript API – 删除表格筛选器button

我无法删除表格filterbutton
在这里输入图像说明
我正在使用下面的代码

Office.context.document.setSelectedDataAsync(sampleDataForExcel, { tableOptions: { filterButton: false } }, function (asyncResult) { if (asyncResult.status === Office.AsyncResultStatus.Failed) { app.showNotification('Could not insert sample data', 'Please choose a different selection range.'); } else { Office.context.document.bindings.addFromSelectionAsync( Office.BindingType.Table, { id: "myBinding" }, function (asyncResult) { if (asyncResult.status === Office.AsyncResultStatus.Failed) { app.showNotification('Error binding data'); } else { window.location.href = '../index.html'; } } ); } } ); 

我只是试了一下,但它使用下面的示例在我的机器上工作正常:

 Office.context.document.setSelectedDataAsync(myTable, { coercionType: Office.CoercionType.Table, tableOptions: { filterButton: false } }