0
나는 Aspose Cells에 Ross-Ice-Shelf-Membrane-on-the-Shelf Excel Interop 앱을 포팅하고 있습니다. 내가 이식하려고하는 한 가지 기능 (할 수있는 방법을 찾을 수 없습니다. here)은 "FreezePanes"입니다.Aspose 셀에서 FreezePanes (피벗 테이블에 있음) 방법이 있습니까?
내 유산 (Excel Interop) 코드가 주석 처리되었습니다. 그것은 작동한다; 그것의 Aspose Cellsisization에서 내 시도는 아래 - 내가 할 수있는 모든 범위를 설정 하였다
private void FreezePanePivotTable(int rowToFreeze, int colToFreeze)
{
//Range pivotTableCellToFreeze = (Range)_xlPivotTableSheet.Cells[rowToFreeze, colToFreeze];
//_xlPivotTableSheet.Activate();
//pivotTableCellToFreeze.Activate();
//pivotTableCellToFreeze.Application.ActiveWindow.FreezePanes = true;
// AsposeCells version of the above:
var pivot = pivotTableSheet.PivotTables[0];
var dataBodyRange = pivot.DataBodyRange;
int rowsUsed = dataBodyRange.EndRow;
int colsUsed = dataBodyRange.EndColumn;
Range pivotTableCellToFreeze = pivotTableSheet.Cells.CreateRange(
rowToFreeze, colToFreeze, rowsUsed, colsUsed);
//pivotTableSheet.ac <= No "activate"
//pivotTableCellToFreeze.act <= No "activate" here, either
//pivotTableCellToFreeze.ApplyStyle <= No "Application.etc." etither...
}
Aspose 세포에 FreezePanes를 설정하는 방법이 있나요를?