【问题标题】:Is there a way to FreezePanes (on a Pivot Table) in Aspose Cells?有没有办法在 Aspose Cells 中冻结窗格(在数据透视表上)?
【发布时间】:2016-12-21 01:19:58
【问题描述】:

我正在将一个比糖蜜还慢的 Ross-Ice-Shelf Excel 互操作应用程序移植到 Aspose Cells。我正在尝试移植的一项功能(找不到方法here)是“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 Cells 中设置 FreezePanes?

【问题讨论】:

    标签: excel pivot-table aspose aspose-cells


    【解决方案1】:

    请关注此主题,让我们知道它是否解决了您的问题以及您是否正在寻找其他东西。

    Thread Link

    注意:我在 Aspose 担任开发人员宣传员

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多