Excel Office 2013 JavaScript API-删除表过滤器按钮

Excel Office 2013 JavaScript API-删除表过滤器按钮,excel,office-addins,office-js,office-2013,Excel,Office Addins,Office Js,Office 2013,我无法删除表过滤器按钮 , 我正在使用下面的代码 Office.context.document.setSelectedDataAsync(sampleDataForExcel, { tableOptions: { filterButton: false } }, function (asyncResult) { if (asyncResult.status === Office.AsyncResultStatus.Failed) {

我无法删除表过滤器按钮

我正在使用下面的代码

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 }
    }

我刚刚尝试过,但使用以下示例,它在我的机器上运行良好:

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