2016-09-08 4 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

関連する問題