0
我正在將一個比Ross-Ice-Shelf Excel Interop應用慢的糖蜜移植到Aspose Cells。我試圖移植的一個功能(無法找到方法來執行它here)是「FreezePanes」Aspose Cells中有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...
}
有沒有一種方法來設置FreezePanes在閱讀Aspose細胞?