2016-09-08 11 views
1

Я не был в состоянии удалить кнопку Фильтр таблиц
enter image description here,
Я использую ниже кодОфис 2013 JavaScript API - Удалить фильтр таблицы Кнопки

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'; 
          } 
         } 
        ); 
       } 
      } 
     ); 

ответ

0

Я просто попытался это, но это работает на моей машине, используя следующий образец:

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

Пробовал это, но не работал для меня. – ozil

 Смежные вопросы

  • Нет связанных вопросов^_^