PivotTable

PivotTable class

Summary description for PivotTable.

Properties

NameTypeDescription
PivotCachePivotCache
IsExcel2003CompatiblebooleanSpecifies whether the PivotTable is compatible for Excel2003 when refreshing PivotTable, if true, a string must be less
RefreshedByWhoStringGets the name of the last user who refreshed this PivotTable
RefreshDateDateTimeGets the last date time when the PivotTable was refreshed.
PivotTableStyleTableStyle
PivotTableStyleNameStringGets and sets the pivottable style name.
PivotTableStyleTypeintGets and sets the built-in pivot table style. The value of the property is PivotTableStyleType integer constant.
ColumnFieldsPivotFieldCollectionReturns a PivotFields object that are currently shown as column fields.
RowFieldsPivotFieldCollectionReturns a PivotFields object that are currently shown as row fields.
PageFieldsPivotFieldCollectionReturns a PivotFields object that are currently shown as page fields.
DataFieldsPivotFieldCollectionGets a PivotField object that represents all the data fields in a PivotTable. Read-only.It would be init only when there
DataFieldPivotFieldGets a PivotField object that represents all the data fields in a PivotTable. Read-only. It would only be created when t
ValuesFieldPivotField
BaseFieldsPivotFieldCollectionReturns all base pivot fields in the PivotTable.
PivotFiltersPivotFilterCollectionReturns a list of pivot filters.
TopRightAreaCellArea
FilterAreaCellArea
ColumnRangeCellAreaReturns a CellArea object that represents the range that contains the column area in the PivotTable report. Read-only.
RowRangeCellAreaReturns a CellArea object that represents the range that contains the row area in the PivotTable report. Read-only.
DataBodyRangeCellAreaReturns a CellArea object that represents the range that contains the data area in the list between the header row and t
TableRange1CellAreaReturns a CellArea object that represents the range containing the entire PivotTable report, but doesn’t include page fi
TableRange2CellAreaReturns a CellArea object that represents the range containing the entire PivotTable report, includes page fields. Read-
IsGridDropZonesbooleanIndicates whether the PivotTable report displays classic pivottable layout. (enables dragging fields in the grid)
ShowColumnGrandTotalsboolean
ShowRowGrandTotalsboolean
ColumnGrandbooleanIndicates whether the PivotTable report shows grand totals for columns.
RowGrandbooleanIndicates whether the PivotTable report shows grand totals for rows.
DisplayNullStringbooleanIndicates whether the PivotTable report displays a custom string if the value is null.
NullStringStringGets the string displayed in cells that contain null values when the DisplayNullString property is true.The default valu
DisplayErrorStringbooleanIndicates whether the PivotTable report displays a custom string in cells that contain errors.
DataFieldHeaderNameStringGets and sets the name of the value area field header in the PivotTable.
ErrorStringStringGets the string displayed in cells that contain errors when the DisplayErrorString property is true.The default value is
IsAutoFormatbooleanIndicates whether the PivotTable report is automatically formatted. Checkbox “autoformat table " which is in pivottable
AutofitColumnWidthOnUpdatebooleanIndicates whether autofitting column width on update
AutoFormatTypeintGets and sets the auto format type of PivotTable. The value of the property is PivotTableAutoFormatType integer constant
HasBlankRowsbooleanIndicates whether to add blank rows. This property only applies for the PivotTable auto format types which needs to add
MergeLabelsbooleanTrue if the specified PivotTable report’s outer-row item, column item, subtotal, and grand total labels use merged cells
PreserveFormattingbooleanIndicates whether formatting is preserved when the PivotTable is refreshed or recalculated.
ShowDrillbooleanGets and sets whether showing expand/collapse buttons.
EnableDrilldownbooleanGets whether drilldown is enabled.
EnableFieldDialogbooleanIndicates whether the PivotTable Field dialog box is available when the user double-clicks the PivotTable field.
EnableFieldListbooleanGets whether enable the field list for the PivotTable.
EnableWizardbooleanIndicates whether the PivotTable Wizard is available.
SubtotalHiddenPageItemsbooleanIndicates whether hidden page field items in the PivotTable report are included in row and column subtotals, block total
GrandTotalNameStringReturns the text string label that is displayed in the grand total column or row heading. The default value is the strin
ManualUpdatebooleanIndicates whether the PivotTable report is recalculated only at the user’s request.
IsMultipleFieldFiltersbooleanSpecifies a boolean value that indicates whether the fields of a PivotTable can have multiple filters set on them.
AllowMultipleFiltersPerFieldboolean
MissingItemsLimitintSpecifies a boolean value that indicates whether the fields of a PivotTable can have multiple filters set on them. The v
EnableDataValueEditingbooleanSpecifies a boolean value that indicates whether the user is allowed to edit the cells in the data area of the pivottabl
ShowDataTipsbooleanSpecifies a boolean value that indicates whether tooltips should be displayed for PivotTable data cells.
ShowMemberPropertyTipsbooleanSpecifies a boolean value that indicates whether member property information should be omitted from PivotTable tooltips.
ShowValuesRowbooleanSpecifies a boolean value that indicates whether show values row. show the values row
ShowEmptyColbooleanSpecifies a boolean value that indicates whether to include empty columns in the table
ShowEmptyRowbooleanSpecifies a boolean value that indicates whether to include empty rows in the table.
FieldListSortAscendingbooleanIndicates whether fields in the PivotTable are sorted in non-default order in the field list.
PrintDrillbooleanSpecifies a boolean value that indicates whether drill indicators should be printed. print expand/collapse buttons when
AltTextTitleStringGets the title of the altertext
AltTextDescriptionStringGets the description of the alt text
NameStringGets the name of the PivotTable
ColumnHeaderCaptionStringGets the Column Header Caption of the PivotTable.
IndentintSpecifies the indentation increment for compact axis and can be used to set the Report Layout to Compact Form.
RowHeaderCaptionStringGets the Row Header Caption of the PivotTable.
ShowRowHeaderCaptionbooleanIndicates whether row header caption is shown in the PivotTable report Indicates whether Display field captions and filt
CustomListSortbooleanIndicates whether consider built-in custom list when sort data
PivotFormatConditionsPivotFormatConditionCollectionGets the Format Conditions of the pivot table.
ConditionalFormatsPivotConditionalFormatCollection
PageFieldOrderintGets the order in which page fields are added to the PivotTable report’s layout. The value of the property is PrintOrder
PageFieldWrapCountintGets the number of page fields in each column or row in the PivotTable report.
TagStringGets a string saved with the PivotTable report.
SaveDatabooleanIndicates whether data for the PivotTable report is saved with the workbook.
RefreshDataOnOpeningFilebooleanIndicates whether Refresh Data when Opening File.
RefreshDataFlagbooleanIndicates whether Refreshing Data or not.
SourceTypebyteThe value of the property is PivotTableSourceType integer constant.
ExternalConnectionDataSourceExternalConnectionGets the external connection data source.
DataSourceString[]Gets and sets the data source of the pivot table.
PivotFormatsPivotTableFormatCollectionGets the collection of formats applied to PivotTable.
ItemPrintTitlesbooleanIndicates whether PivotItem names should be repeated at the top of each printed page.
RepeatItemsOnEachPrintedPageboolean
PrintTitlesbooleanIndicates whether the print titles for the worksheet are set based on the PivotTable report. The default value is false.
DisplayImmediateItemsbooleanIndicates whether items in the row and column areas are visible when the data area of the PivotTable is empty. The defau
IsSelectedbooleanIndicates whether this PivotTable is selected.
ShowPivotStyleRowHeaderbooleanIndicates whether the row header in the pivot table should have the style applied.
ShowPivotStyleColumnHeaderbooleanIndicates whether the column header in the pivot table should have the style applied.
ShowPivotStyleRowStripesbooleanIndicates whether row stripe formatting is applied.
ShowPivotStyleColumnStripesbooleanIndicates whether stripe formatting is applied for column.
ShowPivotStyleLastColumnbooleanIndicates whether the column formatting is applied.

Methods

NameDescription
getHorizontalPageBreaks
getHorizontalBreaksget pivot table row index list of horizontal pagebreaks
showInCompactFormLayouts the PivotTable in compact form.
showInOutlineFormLayouts the PivotTable in outline form.
showInTabularFormLayouts the PivotTable in tabular form.
getCellByDisplayNameGets the Cell object by the display name of PivotField.
getDependentPivotTables
getChildrenGets the Children Pivot Tables which use this PivotTable data as data source.
getSourceDataConnections
getNamesOfSourceDataConnections
changeDataSourceSet pivottable’s source data. Sheet1!$A$1:$C$3
getSourceGet pivottable’s source data.
refreshDataRefreshes pivottable’s data and setting from it’s data source.

We will gather data from data source to a pivot cache ,t | | calculateData | Calculates pivottable’s data to cells.

Cell.Value in the pivot range could not return the correct result if the method | | getPivotTablesWithSamePivotCache | | | clearData | Clear PivotTable’s data and formatting

If this method is not called before you add or delete PivotField, Maybe the Pivo | | clearFilters | | | clearAll | | | calculateRange | Calculates pivottable’s range.

If this method is not been called,maybe the pivottable range is not corrected. | | formatAll | Format all the cell in the pivottable area | | formatRow | Format the row data in the pivottable area | | format | Formats selected area of the PivotTable. | | selectArea | | | showDetail | | | setAutoGroupField | Sets auto field group by the PivotTable.

baseFieldIndex - The row or column field index in the base fields NOTE: This m | | setManualGroupField | Sets manual field group by the PivotTable.

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() | | setUngroup | Sets ungroup by the PivotTable

NOTE: This method is now obsolete. Instead, please use PivotField.Ungroup() method. This | | dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | | copyStyle | Copies named style from another pivot table. | | showReportFilterPage | Show all the report filter pages according to PivotField, the PivotField must be located in the PageFields. | | showReportFilterPageByName | Show all the report filter pages according to PivotField’s name, the PivotField must be located in the PageFields. | | showReportFilterPageByIndex | Show all the report filter pages according to the position index in the PageFields | | removeField | Removes a field from specific field area | | addFieldToArea | Adds the field to the specific area. | | addCalculatedField | Adds a calculated field to pivot field. | | getFields | Gets the specific pivot field list by the region. | | fields | Gets the specific fields by the field type.

NOTE: This method is now obsolete. Instead, please use PivotField.GetFields | | getButtonArea | | | move | Moves the PivotTable to a different location in the worksheet. | | moveTo | |

PivotTable.PivotCache property

Type: PivotCache

PivotTable.IsExcel2003Compatible property

Specifies whether the PivotTable is compatible for Excel2003 when refreshing PivotTable, if true, a string must be less than or equal to 255 characters, so if the string is greater than 255 characters, it will be truncated. if false, a string will not have the aforementioned restriction. The default value is true.

Type: boolean

PivotTable.RefreshedByWho property

Gets the name of the last user who refreshed this PivotTable

Type: String

PivotTable.RefreshDate property

Gets the last date time when the PivotTable was refreshed.

Type: DateTime

PivotTable.PivotTableStyle property

Type: TableStyle

PivotTable.PivotTableStyleName property

Gets and sets the pivottable style name.

Type: String

PivotTable.PivotTableStyleType property

Gets and sets the built-in pivot table style. The value of the property is PivotTableStyleType integer constant.

Type: int

PivotTable.ColumnFields property

Returns a PivotFields object that are currently shown as column fields.

Type: PivotFieldCollection

PivotTable.RowFields property

Returns a PivotFields object that are currently shown as row fields.

Type: PivotFieldCollection

PivotTable.PageFields property

Returns a PivotFields object that are currently shown as page fields.

Type: PivotFieldCollection

PivotTable.DataFields property

Gets a PivotField object that represents all the data fields in a PivotTable. Read-only.It would be init only when there are two or more data fields in the DataPiovtFiels. It only use to add DataPivotField to the PivotTable row/column area . Default is in row area.

Type: PivotFieldCollection

PivotTable.DataField property

Gets a PivotField object that represents all the data fields in a PivotTable. Read-only. It would only be created when there are two or more data fields in the Data region. Defaultly it is in row region. You can drag it to the row/column region with PivotTable.AddFieldToArea() method .

Type: PivotField

PivotTable.ValuesField property

Type: PivotField

PivotTable.BaseFields property

Returns all base pivot fields in the PivotTable.

Type: PivotFieldCollection

PivotTable.PivotFilters property

Returns a list of pivot filters.

Type: PivotFilterCollection

PivotTable.TopRightArea property

Type: CellArea

PivotTable.FilterArea property

Type: CellArea

PivotTable.ColumnRange property

Returns a CellArea object that represents the range that contains the column area in the PivotTable report. Read-only.

Type: CellArea

PivotTable.RowRange property

Returns a CellArea object that represents the range that contains the row area in the PivotTable report. Read-only.

Type: CellArea

PivotTable.DataBodyRange property

Returns a CellArea object that represents the range that contains the data area in the list between the header row and the insert row. Read-only.

Type: CellArea

PivotTable.TableRange1 property

Returns a CellArea object that represents the range containing the entire PivotTable report, but doesn’t include page fields. Read-only.

Type: CellArea

PivotTable.TableRange2 property

Returns a CellArea object that represents the range containing the entire PivotTable report, includes page fields. Read-only.

Type: CellArea

PivotTable.IsGridDropZones property

Indicates whether the PivotTable report displays classic pivottable layout. (enables dragging fields in the grid)

Type: boolean

PivotTable.ShowColumnGrandTotals property

Type: boolean

PivotTable.ShowRowGrandTotals property

Type: boolean

PivotTable.ColumnGrand property

Indicates whether the PivotTable report shows grand totals for columns.

Type: boolean

PivotTable.RowGrand property

Indicates whether the PivotTable report shows grand totals for rows.

Type: boolean

PivotTable.DisplayNullString property

Indicates whether the PivotTable report displays a custom string if the value is null.

Type: boolean

PivotTable.NullString property

Gets the string displayed in cells that contain null values when the DisplayNullString property is true.The default value is an empty string.

Type: String

PivotTable.DisplayErrorString property

Indicates whether the PivotTable report displays a custom string in cells that contain errors.

Type: boolean

PivotTable.DataFieldHeaderName property

Gets and sets the name of the value area field header in the PivotTable.

Type: String

PivotTable.ErrorString property

Gets the string displayed in cells that contain errors when the DisplayErrorString property is true.The default value is an empty string.

Type: String

PivotTable.IsAutoFormat property

Indicates whether the PivotTable report is automatically formatted. Checkbox “autoformat table " which is in pivottable option for Excel 2003

Type: boolean

PivotTable.AutofitColumnWidthOnUpdate property

Indicates whether autofitting column width on update

Type: boolean

PivotTable.AutoFormatType property

Gets and sets the auto format type of PivotTable. The value of the property is PivotTableAutoFormatType integer constant.

Type: int

PivotTable.HasBlankRows property

Indicates whether to add blank rows. This property only applies for the PivotTable auto format types which needs to add blank rows.

Type: boolean

PivotTable.MergeLabels property

True if the specified PivotTable report’s outer-row item, column item, subtotal, and grand total labels use merged cells.

Type: boolean

PivotTable.PreserveFormatting property

Indicates whether formatting is preserved when the PivotTable is refreshed or recalculated.

Type: boolean

PivotTable.ShowDrill property

Gets and sets whether showing expand/collapse buttons.

Type: boolean

PivotTable.EnableDrilldown property

Gets whether drilldown is enabled.

Type: boolean

PivotTable.EnableFieldDialog property

Indicates whether the PivotTable Field dialog box is available when the user double-clicks the PivotTable field.

Type: boolean

PivotTable.EnableFieldList property

Gets whether enable the field list for the PivotTable.

Type: boolean

PivotTable.EnableWizard property

Indicates whether the PivotTable Wizard is available.

Type: boolean

PivotTable.SubtotalHiddenPageItems property

Indicates whether hidden page field items in the PivotTable report are included in row and column subtotals, block totals, and grand totals. The default value is False.

Type: boolean

PivotTable.GrandTotalName property

Returns the text string label that is displayed in the grand total column or row heading. The default value is the string “Grand Total”.

Type: String

PivotTable.ManualUpdate property

Indicates whether the PivotTable report is recalculated only at the user’s request.

Type: boolean

PivotTable.IsMultipleFieldFilters property

Specifies a boolean value that indicates whether the fields of a PivotTable can have multiple filters set on them.

Type: boolean

PivotTable.AllowMultipleFiltersPerField property

Type: boolean

PivotTable.MissingItemsLimit property

Specifies a boolean value that indicates whether the fields of a PivotTable can have multiple filters set on them. The value of the property is PivotMissingItemLimitType integer constant.

Type: int

PivotTable.EnableDataValueEditing property

Specifies a boolean value that indicates whether the user is allowed to edit the cells in the data area of the pivottable. Enable cell editing in the values area

Type: boolean

PivotTable.ShowDataTips property

Specifies a boolean value that indicates whether tooltips should be displayed for PivotTable data cells.

Type: boolean

PivotTable.ShowMemberPropertyTips property

Specifies a boolean value that indicates whether member property information should be omitted from PivotTable tooltips.

Type: boolean

PivotTable.ShowValuesRow property

Specifies a boolean value that indicates whether show values row. show the values row

Type: boolean

PivotTable.ShowEmptyCol property

Specifies a boolean value that indicates whether to include empty columns in the table

Type: boolean

PivotTable.ShowEmptyRow property

Specifies a boolean value that indicates whether to include empty rows in the table.

Type: boolean

PivotTable.FieldListSortAscending property

Indicates whether fields in the PivotTable are sorted in non-default order in the field list.

Type: boolean

PivotTable.PrintDrill property

Specifies a boolean value that indicates whether drill indicators should be printed. print expand/collapse buttons when displayed on pivottable.

Type: boolean

PivotTable.AltTextTitle property

Gets the title of the altertext

Type: String

PivotTable.AltTextDescription property

Gets the description of the alt text

Type: String

PivotTable.Name property

Gets the name of the PivotTable

Type: String

PivotTable.ColumnHeaderCaption property

Gets the Column Header Caption of the PivotTable.

Type: String

PivotTable.Indent property

Specifies the indentation increment for compact axis and can be used to set the Report Layout to Compact Form.

Type: int

PivotTable.RowHeaderCaption property

Gets the Row Header Caption of the PivotTable.

Type: String

PivotTable.ShowRowHeaderCaption property

Indicates whether row header caption is shown in the PivotTable report Indicates whether Display field captions and filter drop downs

Type: boolean

PivotTable.CustomListSort property

Indicates whether consider built-in custom list when sort data

Type: boolean

PivotTable.PivotFormatConditions property

Gets the Format Conditions of the pivot table.

Type: PivotFormatConditionCollection

PivotTable.ConditionalFormats property

Type: PivotConditionalFormatCollection

PivotTable.PageFieldOrder property

Gets the order in which page fields are added to the PivotTable report’s layout. The value of the property is PrintOrderType integer constant.

Type: int

PivotTable.PageFieldWrapCount property

Gets the number of page fields in each column or row in the PivotTable report.

Type: int

PivotTable.Tag property

Gets a string saved with the PivotTable report.

Type: String

PivotTable.SaveData property

Indicates whether data for the PivotTable report is saved with the workbook.

Type: boolean

PivotTable.RefreshDataOnOpeningFile property

Indicates whether Refresh Data when Opening File.

Type: boolean

PivotTable.RefreshDataFlag property

Indicates whether Refreshing Data or not.

Type: boolean

PivotTable.SourceType property

The value of the property is PivotTableSourceType integer constant.

Type: byte

PivotTable.ExternalConnectionDataSource property

Gets the external connection data source.

Type: ExternalConnection

PivotTable.DataSource property

Gets and sets the data source of the pivot table.

Type: String[]

PivotTable.PivotFormats property

Gets the collection of formats applied to PivotTable.

Type: PivotTableFormatCollection

PivotTable.ItemPrintTitles property

Indicates whether PivotItem names should be repeated at the top of each printed page.

Type: boolean

PivotTable.RepeatItemsOnEachPrintedPage property

Type: boolean

PivotTable.PrintTitles property

Indicates whether the print titles for the worksheet are set based on the PivotTable report. The default value is false.

Type: boolean

PivotTable.DisplayImmediateItems property

Indicates whether items in the row and column areas are visible when the data area of the PivotTable is empty. The default value is true.

Type: boolean

PivotTable.IsSelected property

Indicates whether this PivotTable is selected.

Type: boolean

PivotTable.ShowPivotStyleRowHeader property

Indicates whether the row header in the pivot table should have the style applied.

Type: boolean

PivotTable.ShowPivotStyleColumnHeader property

Indicates whether the column header in the pivot table should have the style applied.

Type: boolean

PivotTable.ShowPivotStyleRowStripes property

Indicates whether row stripe formatting is applied.

Type: boolean

PivotTable.ShowPivotStyleColumnStripes property

Indicates whether stripe formatting is applied for column.

Type: boolean

PivotTable.ShowPivotStyleLastColumn property

Indicates whether the column formatting is applied.

Type: boolean

getHorizontalPageBreaks()

getHorizontalBreaks()

get pivot table row index list of horizontal pagebreaks

showInCompactForm()

Layouts the PivotTable in compact form.

showInOutlineForm()

Layouts the PivotTable in outline form.

showInTabularForm()

Layouts the PivotTable in tabular form.

getCellByDisplayName(displayName)

Gets the Cell object by the display name of PivotField.

ParameterTypeDescription
displayNameStringthe DisplayName of PivotField

Returns: the Cell object

getDependentPivotTables()

getChildren()

Gets the Children Pivot Tables which use this PivotTable data as data source.

Returns: the PivotTable array object

getSourceDataConnections()

getNamesOfSourceDataConnections()

changeDataSource(source)

Set pivottable’s source data. Sheet1!$A$1:$C$3

getSource() (1 of 2)

Get pivottable’s source data.


getSource(isOriginal) (2 of 2)

refreshData() (1 of 2)

Refreshes pivottable’s data and setting from it’s data source.

We will gather data from data source to a pivot cache ,then calculate the data in the cache to the cells. This method is only used to gather all data to a pivot cache.


refreshData(option) (2 of 2)

Refreshes pivottable’s data and setting from it’s data source with options.

ParameterTypeDescription
optionPivotTableRefreshOptionThe options for refreshing data source of pivot table.

calculateData() (1 of 2)

Calculates pivottable’s data to cells.

Cell.Value in the pivot range could not return the correct result if the method is not been called. This method calculates data with an inner pivot cache,not original data source. So if the data source is changed, please call RefreshData() method first.


calculateData(option) (2 of 2)

Calculating pivot tables with options

ParameterTypeDescription
optionPivotTableCalculateOption

getPivotTablesWithSamePivotCache()

clearData()

Clear PivotTable’s data and formatting

If this method is not called before you add or delete PivotField, Maybe the PivotTable data is not corrected

clearFilters()

clearAll()

calculateRange()

Calculates pivottable’s range.

If this method is not been called,maybe the pivottable range is not corrected.

formatAll(style)

Format all the cell in the pivottable area

ParameterTypeDescription
styleStyleStyle which is to format

formatRow(row, style)

Format the row data in the pivottable area

ParameterTypeDescription
rowintRow Index of the Row object
styleStyleStyle which is to format

format(pivotArea, style) (1 of 3)

Formats selected area of the PivotTable.

ParameterTypeDescription
pivotAreaPivotArea
styleStyle

format(ca, style) (2 of 3)


format(row, column, style) (3 of 3)

Format the cell in the pivottable area

ParameterTypeDescription
rowintRow Index of the cell
columnintColumn index of the cell
styleStyleStyle which is to format the cell

selectArea(ca)

showDetail(rowOffset, columnOffset, newSheet, destRow, destColumn)

setAutoGroupField(baseFieldIndex) (1 of 2)

Sets auto field group by the PivotTable.

baseFieldIndex - The row or column field index in the base fields NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.


setAutoGroupField(pivotField) (2 of 2)

Sets auto field group by the PivotTable.

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
pivotFieldPivotFieldThe row or column field in the specific fields

setManualGroupField(baseFieldIndex, startVal, endVal, groupByList, intervalNum) (1 of 4)

Sets manual field group by the PivotTable.

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
baseFieldIndexintThe row or column field index in the base fields
startValfloatSpecifies the starting value for numeric grouping.
endValfloatSpecifies the ending value for numeric grouping.
groupByListArrayListSpecifies the grouping type list. Specified by PivotTableGroupType
intervalNumfloatSpecifies the interval number group by numeric grouping.

setManualGroupField(pivotField, startVal, endVal, groupByList, intervalNum) (2 of 4)

Sets manual field group by the PivotTable.

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
pivotFieldPivotFieldThe row or column field in the base fields
startValfloatSpecifies the starting value for numeric grouping.
endValfloatSpecifies the ending value for numeric grouping.
groupByListArrayListSpecifies the grouping type list. Specified by PivotTableGroupType
intervalNumfloatSpecifies the interval number group by numeric grouping.

setManualGroupField(baseFieldIndex, startVal, endVal, groupByList, intervalNum) (3 of 4)

Sets manual field group by the PivotTable.

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
baseFieldIndexintThe row or column field index in the base fields
startValDateTimeSpecifies the starting value for date grouping.
endValDateTimeSpecifies the ending value for date grouping.
groupByListArrayListSpecifies the grouping type list. Specified by PivotTableGroupType
intervalNumintSpecifies the interval number group by in days grouping.The number of days must be positive integer of nonzero

setManualGroupField(pivotField, startVal, endVal, groupByList, intervalNum) (4 of 4)

Sets manual field group by the PivotTable.

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
pivotFieldPivotFieldThe row or column field in the base fields
startValDateTimeSpecifies the starting value for date grouping.
endValDateTimeSpecifies the ending value for date grouping.
groupByListArrayListSpecifies the grouping type list. Specified by PivotTableGroupType
intervalNumintSpecifies the interval number group by in days grouping.The number of days must be positive integer of nonzero

setUngroup(baseFieldIndex) (1 of 2)

Sets ungroup by the PivotTable

NOTE: This method is now obsolete. Instead, please use PivotField.Ungroup() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
baseFieldIndexintThe row or column field index in the base fields

setUngroup(pivotField) (2 of 2)

Sets ungroup by the PivotTable

NOTE: This method is now obsolete. Instead, please use PivotField.Ungroup() method. This method will be removed 12 months later since October 2023. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
pivotFieldPivotFieldThe row or column field in the base fields

dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

copyStyle(pivotTable)

Copies named style from another pivot table.

ParameterTypeDescription
pivotTablePivotTableSource pivot table.

showReportFilterPage(pageField)

Show all the report filter pages according to PivotField, the PivotField must be located in the PageFields.

ParameterTypeDescription
pageFieldPivotFieldThe PivotField object

showReportFilterPageByName(fieldName)

Show all the report filter pages according to PivotField’s name, the PivotField must be located in the PageFields.

ParameterTypeDescription
fieldNameStringThe name of PivotField

showReportFilterPageByIndex(posIndex)

Show all the report filter pages according to the position index in the PageFields

ParameterTypeDescription
posIndexintThe position index in the PageFields

removeField(fieldType, fieldName) (1 of 3)

Removes a field from specific field area

ParameterTypeDescription
fieldTypeintA PivotFieldType value. The fields area type.
fieldNameStringThe name in the base fields.

removeField(fieldType, baseFieldIndex) (2 of 3)

Removes a field from specific field area

ParameterTypeDescription
fieldTypeintA PivotFieldType value. The fields area type.
baseFieldIndexintThe field index in the base fields.

removeField(fieldType, pivotField) (3 of 3)

Remove field from specific field area

ParameterTypeDescription
fieldTypeintA PivotFieldType value. the fields area type.
pivotFieldPivotFieldthe field in the base fields.

addFieldToArea(fieldType, fieldName) (1 of 3)

Adds the field to the specific area.

ParameterTypeDescription
fieldTypeintA PivotFieldType value. The fields area type.
fieldNameStringThe name in the base fields.

Returns: The field position in the specific fields.If there is no field named as it, return -1.


addFieldToArea(fieldType, baseFieldIndex) (2 of 3)

Adds the field to the specific area.

ParameterTypeDescription
fieldTypeintA PivotFieldType value. The fields area type.
baseFieldIndexintThe field index in the base fields.

Returns: The field position in the specific fields.


addFieldToArea(fieldType, pivotField) (3 of 3)

Adds the field to the specific area.

ParameterTypeDescription
fieldTypeintA PivotFieldType value. the fields area type.
pivotFieldPivotFieldthe field in the base fields.

Returns: the field position in the specific fields.

addCalculatedField(name, formula, dragToDataArea) (1 of 2)

Adds a calculated field to pivot field.

ParameterTypeDescription
nameStringThe name of the calculated field
formulaStringThe formula of the calculated field.
dragToDataAreabooleanTrue,drag this field to data area immediately

addCalculatedField(name, formula) (2 of 2)

Adds a calculated field to pivot field and drag it to data area.

ParameterTypeDescription
nameStringThe name of the calculated field
formulaStringThe formula of the calculated field.

getFields(fieldType)

Gets the specific pivot field list by the region.

ParameterTypeDescription
fieldTypeintA PivotFieldType value. the region type.

Returns: the specific pivot field collection

fields(fieldType)

Gets the specific fields by the field type.

NOTE: This method is now obsolete. Instead, please use PivotField.GetFields() method. This method will be removed 12 months later since May 2024. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
fieldTypeintA PivotFieldType value. the field type.

Returns: the specific field collection

getButtonArea(axisType)

move(row, column) (1 of 2)

Moves the PivotTable to a different location in the worksheet.

ParameterTypeDescription
rowintrow index.
columnintcolumn index.

move(destCellName) (2 of 2)

Moves the PivotTable to a different location in the worksheet.

ParameterTypeDescription
destCellNameStringthe dest cell name.

moveTo(row, column) (1 of 2)


moveTo(destCellName) (2 of 2)