0
私は、ピボットテーブルを更新しようとしているが、よMicrosoft Officeの相互運用エクセル
VS 2008を使用して、asp.net/C#/.net 3.5でMicrosoft.Office.Interopt.Excelアプリを開発しています 次の文はコンパイルされません。
wkSheet.PivotTables("PivotTable1").PivotCache.Refresh;
次の2つのエラーが発生します。助けてもらえますか?
PivotTable pvtTable = (PivotTable)wkSheet.PivotTables("PivotTable1");
pvtTable.RefreshTable();
:
1.Only assignment, call, increment, decrement, and new object expressions can be used as a statement
2.'object' does not contain a definition for 'PivotCache' and no extension method 'PivotCache' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)