[]
        
(Showing Draft Content)

管理总体可见性设置

数据透视表中的总计有助于分析数据透视表中的数据的总计。通过设置IPivotTable接口的ColumnGrandRowGrand属性的可见性,您可以显示或隐藏行或列字段的总计。这些属性接受布尔值,并在默认情况下设置为true。例如,如果希望只显示行的总计,则将RowGrand方法设置为true,将ColumnGrand设置为false。

请参阅以下示例代码,以管理总计字段的可见性设置。

// Set the PivotTable report to show grand totals for columns & rows
pivottable.setColumnGrand(true);
pivottable.setRowGrand(true);