2012-04-23 5 views
0

내가 피벗 테이블을 새로 고치려고 노력하지만,하고있어마이크로 소프트 오피스 Interop를 엑셀

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?) 

답변

0

이러한 메시지는 모두

같은 것을 시도 친절 오프 분명
관련 문제