Namespace EasyXLS.PivotTables
Class ExcelPivotTable
System.Object
EasyXLS.PivotTables.ExcelPivotTable
public class ExcelPivotTable
extends System.Object
This class stores pivot table information like name, location, data source, layout & format options, totals & filters, display, printing and data
options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCalculatedField(System.String name, System.String formula) Add a calculated field to pivot table.voidaddField(ExcelField xlsField) Internal use onlyvoidaddFieldToColumnLabels(System.String fieldName) Adds the field to column labels area.voidaddFieldToReportFilter(System.String fieldName) Adds the field to report filter area.voidaddFieldToRowLabels(System.String fieldName) Adds the field to row labels area.voidaddFieldToValues(System.String fieldName, System.String customName, int subtotal) Adds the field to values area.boolReturns true if all values, including those hidden by filtering, are included when the subtotals and the grand total are calculated, false otherwise.Clone()Creates and returns a copy of this object.intReturns the number of fields in the column labels area.intReturns the number of fields in the pivot table.System.StringReturns the value to be displayed in column header in compact mode.getColumnLabelsFieldAt(int index) Returns the field from the specified index in the column labels area.System.StringReturns the value to be displayed in value area header.System.StringReturns the text that is displayed in a cell instead of a blank cell.System.StringReturns the text that is displayed in a cell instead of the error message.getField(System.String name) Returns the field having the specified name.getFieldAt(int index) Returns the field from the specified index.System.StringReturns the value to be displayed for grand totals.System.StringReturns the range where the pivot table is located.System.StringgetName()Returns the pivot table name.intReturns the number of fields to display before taking up another column or row.getReportFilterFieldAt(int index) Returns the field from the specified index in the report filter area.System.StringReturns the value to be displayed in row header in compact mode.getRowLabelsFieldAt(int index) Returns the field from the specified index in the row labels area.intReturns the indent of the rows in the row labels area when the pivot table report is in compact format.intReturns the sort order of the fields in pivot table.System.StringReturns the data source of the pivot table.System.StringgetStyle()Returns the style of the pivot table.getValueField(System.String name) Returns the field having the specified name in the values area.getValueFieldAt(int index) Returns the field from the specified index in the values area.voidgroupDateField(System.String fieldName, bool autoStartAt, System.DateTime startAt, bool autoEndAt, System.DateTime endAt, bool groupBySeconds, bool groupByMinutes, bool groupByHours, bool groupByDays, int numberOfDays, bool groupByMonths, bool groupByQuarters, bool groupByYears) Group a pivot table field of date time format.voidgroupNumericField(System.String fieldName, bool autoStartAt, double startAt, bool autoEndAt, double endAt, double groupBy) Group a pivot table field of numeric data type.boolReturns true if the pivot table columns are adjusted automatically to fit the cell content, false if the current width is kept.boolReturns true if the classic layout is selected, false otherwise.boolReturns true if the drilling down to detail data from the data source, and then displaying the data on a new worksheet is enabled, false otherwise.boolReturns true if the cells are merged for outer row and column items, false otherwise.boolReturns true if first are displayed the fields in the report filter area from left to right, false if first are displayed the fields in the report filter area from top to bottomboolReturns true if the layout and format is preserved each time an operation is performed on the pivot table, false otherwise.boolReturns true if the custom lists are used when Excel sorts lists, false otherwise.boolReturns true if the expand/collapse buttons are visible when the pivot table is printed, false otherwise.boolReturns true if the row and column field headers and column item labels are replicated on each printed page, false otherwise.voidRefresh(ExcelDocument xls) Refreshes the field names accordingly to the data on the source range.voidremoveFieldFromColumnLabels(System.String fieldName) Removes the field from the column labels area.voidremoveFieldFromReportFilter(System.String fieldName) Removes the field from the report filter area.voidremoveFieldFromRowLabels(System.String fieldName) Removes the field from the row labels area.voidremoveValueFieldFromValues(System.String customFieldName) Removes the field from the values area.boolReturns true if the row labels are replicated on each printed page, false otherwise.intReturns the number of fields in the report filter area.intReturns the number of fields in the row labels area.voidsetAllowMultipleFiltersPerField(bool allow) Sets if all values, including those hidden by filtering, are included when the subtotals and the grand total are calculated.voidsetAutofitColumnWidthsOnUpdate(bool autofit) Sets if the pivot table columns are adjusted automatically to fit the cell content or the current width is kept.voidsetClassicLayout(bool isClassicLayout) Sets if the classic layout is selected.voidsetColumnHeaderTitle(System.String text) Sets the value to be displayed in column header in compact mode.voidSets the compact form for all the fields of the pivot table.voidsetDataHeaderTitle(System.String text) Sets the value to be displayed in value area header.voidsetEmptyCellValue(bool showEmptyCell, System.String value) Sets the text that is displayed in a cell instead of a blank cell.voidsetEnableShowDetails(bool enable) Sets if the drilling down to detail data from the data source, and then displaying the data on a new worksheet is enabled.voidsetErrorValue(bool showError, System.String value) Sets the text that is displayed in a cell instead of the error message.voidsetGrandTotalTitle(System.String text) Sets the value to be displayed for grand totals.voidsetLocation(int firstRow, int firstColumn, int lastRow, int lastColumn) Sets the location of the pivot table and must be a formula, that represents a range or a cell reference.voidsetLocation(System.String range) Sets the location of the pivot table and must be a formula, that represents a range or a cell reference
This method is overridden as setLocation_2 in COM+ version of EasyXLS.voidsetMergeAndCenterCellsWithLabels(bool mergeAndCenterCellsWithLabels) Sets if the cells are merged for outer row and column items.voidsetName(System.String name) Sets the pivot table name.voidSets the outline form for all the fields of the pivot table.voidsetPageOverThenDown(bool isPageOverThenDown) Sets if first are displayed the fields in the report filter area from left to right, or if first are displayed the fields in the report filter area from top to bottomvoidsetPageWrap(int fields) Sets the number of fields to display before taking up another column or row.voidsetPreserveCellFormattingOnUpdate(bool preserve) Sets if the layout and format is preserved each time an operation is performed on the pivot table.voidsetPrintDrillButtons(bool printDrillButtons) Sets if the expand/collapse buttons are visible when the pivot table is printed.voidsetPrintTitles(bool printTitles) Sets if the row and column field headers and column item labels are replicated on each printed page.voidsetRepeatRowLabels(bool repeatRowLabels) Sets if the row labels are replicated on each printed page.voidsetRowHeaderTitle(System.String text) Sets the value to be displayed in row header in compact mode.voidsetRowLabelsIndent(int chars) Sets the indent of the rows in the row labels area when the pivot table report is in compact format.voidsetShowColumnHeaders(bool show) Sets if the column headers in the banding style are displayed.voidsetShowColumnStripes(bool show) Sets if the column headers in the banding style are displayed.voidsetShowContextualTooltips(bool show) Sets if the tooltips that show value, row, or column information for a field or data value are visible.voidsetShowDrillButtons(bool show) Sets if the expand/collapse buttons are visible.voidsetShowGrandTotalsForColumns(bool show) Sets if the pivot table contains grand totals for columns.voidsetShowGrandTotalsForRows(bool show) Sets if the pivot table contains grand totals for rows.voidsetShowHeaders(bool showHeaders) Sets if the captions at the top of the pivot table report and filter drop-down arrows on column and row labels are visible.voidsetShowRowHeaders(bool show) Sets if the row headers in the banding style are displayed.voidsetShowRowStripes(bool show) Sets if the row headers in the banding style are displayed.voidsetSortOrder(int sortOrder) Sets the sort order of the fields in pivot table.voidsetSourceRange(System.String formulaRange, ExcelDocument xls) Sets the data source for the pivot table.voidsetStyle(System.String style) Sets the style of the pivot table.voidsetSubtotalFilteredPageItems(bool show) Sets if the pivot table includes or excludes report-filtered items in subtotal.voidSets the outline form for all the fields of the pivot table.voidsetUseCustomListsWhenSorting(bool useCustomListsWhenSorting) Sets if the custom lists are used when Excel sorts lists.boolReturns true if the column headers in the banding style are displayed, false otherwise.boolReturns true if each column is alternated with a lighter and darker color, false otherwise.boolReturns true if the tooltips that show value, row, or column information for a field or data value are visible, false otherwise.boolReturns true if the expand/collapse buttons are visible, false otherwise.boolReturns true if a specific text is displayed in a cell instead of a blank cell, false otherwise.boolReturns true if a specific text is displayed in a cell instead of the error message, false otherwise.boolReturns true if the pivot table contains grand totals for columns, false otherwise.boolReturns true if the pivot table contains grand totals for rows, false otherwise.boolReturns true if the captions at the top of the pivot table report and filter drop-down arrows on column and row labels are visible, false otherwise.boolReturns true if the row headers in the banding style are displayed, false otherwise.boolReturns true if each row is alternated with a lighter and darker color, false otherwise.boolReturns true if the pivot table includes or excludes report-filtered items in subtotals, false otherwise.voidungroupField(System.String fieldName) Ungroup a pivot table field.intReturns the number of fields in the values area.Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelPivotTable
public ExcelPivotTable()Defines an instance of the pivot table.
-
-
Method Details
-
setName
public void setName(System.String name) Sets the pivot table name.- Parameters:
name- the pivot table name- See Also:
-
getName
public System.String getName()Returns the pivot table name.- Returns:
- the pivot table name
- See Also:
-
setLocation
public void setLocation(int firstRow, int firstColumn, int lastRow, int lastColumn) Sets the location of the pivot table and must be a formula, that represents a range or a cell reference.- Parameters:
firstRow- first row index of the pivot table locationfirstColumn- first column index of the pivot table locationlastRow- last row index of the pivot table locationlastColumn- last column index of the pivot table location- See Also:
-
setLocation
public void setLocation(System.String range) Sets the location of the pivot table and must be a formula, that represents a range or a cell reference
This method is overridden as setLocation_2 in COM+ version of EasyXLS.- Parameters:
range- the location of the pivot table- See Also:
-
getLocation
public System.String getLocation()Returns the range where the pivot table is located.- Returns:
- the range where the pivot table is located
- See Also:
-
setSourceRange
Sets the data source for the pivot table. It must be a range including the sheet name (like Sheet1!A1:C10) or a named range.- Parameters:
formulaRange- the data source for the pivot tablexls- the instance of the document- See Also:
-
getSourceRange
public System.String getSourceRange()Returns the data source of the pivot table. It is a range including the sheet name (like Sheet1!A1:C10) or a named range.- Returns:
- the data source of the pivot table
- See Also:
-
addField
Internal use only- Parameters:
xlsField- pivot table field
-
addCalculatedField
public void addCalculatedField(System.String name, System.String formula) Add a calculated field to pivot table. The formula must start with "=" symbol.- Parameters:
name- the name of the fieldformula- the formula that defines the field.- See Also:
-
getFieldAt
Returns the field from the specified index.- Parameters:
index- the field index- Returns:
- the field from the specified index
- See Also:
-
getField
Returns the field having the specified name.- Parameters:
name- the field name- Returns:
- the field having the specified name
- See Also:
-
FieldCount
public int FieldCount()Returns the number of fields in the pivot table.- Returns:
- the number of fields in the pivot table
- See Also:
-
addFieldToRowLabels
public void addFieldToRowLabels(System.String fieldName) Adds the field to row labels area.- Parameters:
fieldName- the name of the field that will be added to row labels area. The summarization special field isPivotTable.SUM_VALUES_FIELD.- See Also:
-
RowLabelsCount
public int RowLabelsCount()Returns the number of fields in the row labels area.- Returns:
- the number of fields in the row labels area
- See Also:
-
removeFieldFromRowLabels
public void removeFieldFromRowLabels(System.String fieldName) Removes the field from the row labels area.- Parameters:
fieldName- the name of the field that will be removed- See Also:
-
getRowLabelsFieldAt
Returns the field from the specified index in the row labels area.- Parameters:
index- the index of the field in the row labels area- Returns:
- the field at the specified index in the row labels area
- See Also:
-
addFieldToColumnLabels
public void addFieldToColumnLabels(System.String fieldName) Adds the field to column labels area.- Parameters:
fieldName- the name of the field that will be added to column labels area. The summarization special field isPivotTable.SUM_VALUES_FIELD.- See Also:
-
ColumnLabelsCount
public int ColumnLabelsCount()Returns the number of fields in the column labels area.- Returns:
- the number of fields in the column labels area
- See Also:
-
removeFieldFromColumnLabels
public void removeFieldFromColumnLabels(System.String fieldName) Removes the field from the column labels area.- Parameters:
fieldName- the name of the field that will be removed- See Also:
-
getColumnLabelsFieldAt
Returns the field from the specified index in the column labels area.- Parameters:
index- the index of the field in the column labels area- Returns:
- the field at the specified index in the column labels area
- See Also:
-
addFieldToReportFilter
public void addFieldToReportFilter(System.String fieldName) Adds the field to report filter area.- Parameters:
fieldName- the name of the field that will be added to report filter area.- See Also:
-
ReportFilterCount
public int ReportFilterCount()Returns the number of fields in the report filter area.- Returns:
- the number of fields in the report filter area
- See Also:
-
removeFieldFromReportFilter
public void removeFieldFromReportFilter(System.String fieldName) Removes the field from the report filter area.- Parameters:
fieldName- the name of the field that will be removed- See Also:
-
getReportFilterFieldAt
Returns the field from the specified index in the report filter area.- Parameters:
index- the index of the field in the report filter area- Returns:
- the field at the specified index in the report filter area
- See Also:
-
addFieldToValues
public void addFieldToValues(System.String fieldName, System.String customName, int subtotal) Adds the field to values area.- Parameters:
fieldName- the name of the field that will be added to values area.customName- the name of the pivot table value fieldsubtotal- the subtotal applied on the value field. Possible values are available inPivotTableclass.- See Also:
-
ValuesCount
public int ValuesCount()Returns the number of fields in the values area.- Returns:
- the number of fields in the values area
- See Also:
-
removeValueFieldFromValues
public void removeValueFieldFromValues(System.String customFieldName) Removes the field from the values area.- Parameters:
customFieldName- the name of the field that will be removed- See Also:
-
getValueField
Returns the field having the specified name in the values area.- Parameters:
name- the name of the field- Returns:
- the field having the specified name in the values area
- See Also:
-
getValueFieldAt
Returns the field from the specified index in the values area.- Parameters:
index- the index of the field in the values area- Returns:
- the field at the specified index in the values area
- See Also:
-
Refresh
Refreshes the field names accordingly to the data on the source range.- Parameters:
xls- the instance of the document
-
groupDateField
public void groupDateField(System.String fieldName, bool autoStartAt, System.DateTime startAt, bool autoEndAt, System.DateTime endAt, bool groupBySeconds, bool groupByMinutes, bool groupByHours, bool groupByDays, int numberOfDays, bool groupByMonths, bool groupByQuarters, bool groupByYears) Group a pivot table field of date time format.- Parameters:
fieldName- the pivot table field where the group is appliedautoStartAt- true if the group starting at automatic date, false otherwisestartAt- the date of start. It is applied only if autoStartAt is falseautoEndAt- true if the group ending at automatic date, false otherwiseendAt- the date of end. It is applied only if autoEndAt is falsegroupBySeconds- true if the field is group by seconds, false otherwisegroupByMinutes- true if the field is group by minutes, false otherwisegroupByHours- true if the field is group by hours, false otherwisegroupByDays- true if the field is group by days, false otherwisenumberOfDays- the number of days for intervals. It is valid only if groupByDays is truegroupByMonths- true if the field is group by months, false otherwisegroupByQuarters- true if the field is group by quarters, false otherwisegroupByYears- true if the field is group by years, false otherwise- See Also:
-
groupNumericField
public void groupNumericField(System.String fieldName, bool autoStartAt, double startAt, bool autoEndAt, double endAt, double groupBy) Group a pivot table field of numeric data type.- Parameters:
fieldName- the pivot table field where the group is appliedautoStartAt- true if the group starting at automatic date, false otherwisestartAt- the start value for the group. It is applied only if autoStartAt is falseautoEndAt- true if the group ending at automatic date, false otherwiseendAt- the end value for the group. It is applied only if autoEndAt is falsegroupBy- the group interval- See Also:
-
ungroupField
public void ungroupField(System.String fieldName) Ungroup a pivot table field.- Parameters:
fieldName- the pivot table field where the group is removed- See Also:
-
getRowHeaderTitle
public System.String getRowHeaderTitle()Returns the value to be displayed in row header in compact mode.- Returns:
- the value to be displayed in row header in compact mode
- See Also:
-
setRowHeaderTitle
public void setRowHeaderTitle(System.String text) Sets the value to be displayed in row header in compact mode.- Parameters:
text- the value to be displayed in row header in compact mode- See Also:
-
getColumnHeaderTitle
public System.String getColumnHeaderTitle()Returns the value to be displayed in column header in compact mode.- Returns:
- the value to be displayed in column header in compact mode
- See Also:
-
setColumnHeaderTitle
public void setColumnHeaderTitle(System.String text) Sets the value to be displayed in column header in compact mode.- Parameters:
text- the value to be displayed in column header in compact mode- See Also:
-
getDataHeaderTitle
public System.String getDataHeaderTitle()Returns the value to be displayed in value area header. This value is shown when the pivot table has more than two fields in the values area.- Returns:
- the value to be displayed in value area header
- See Also:
-
setDataHeaderTitle
public void setDataHeaderTitle(System.String text) Sets the value to be displayed in value area header. This value is shown when the pivot table has more than two fields are in the values area.- Parameters:
text- the value to be displayed in value area header- See Also:
-
getGrandTotalTitle
public System.String getGrandTotalTitle()Returns the value to be displayed for grand totals.- Returns:
- the value to be displayed for grand totals
- See Also:
-
setGrandTotalTitle
public void setGrandTotalTitle(System.String text) Sets the value to be displayed for grand totals.- Parameters:
text- the value to be displayed for grand totals- See Also:
-
IsMergeAndCenterCellsWithLabels
public bool IsMergeAndCenterCellsWithLabels()Returns true if the cells are merged for outer row and column items, false otherwise.- Returns:
- true if the cells are merged for outer row and column items, false otherwise
- See Also:
-
setMergeAndCenterCellsWithLabels
public void setMergeAndCenterCellsWithLabels(bool mergeAndCenterCellsWithLabels) Sets if the cells are merged for outer row and column items.- Parameters:
mergeAndCenterCellsWithLabels- true if the cells are merged for outer row and column items, false otherwise- See Also:
-
getRowLabelsIndent
public int getRowLabelsIndent()Returns the indent of the rows in the row labels area when the pivot table report is in compact format.- Returns:
- the indent of the rows in the row labels area
- See Also:
-
setRowLabelsIndent
public void setRowLabelsIndent(int chars) Sets the indent of the rows in the row labels area when the pivot table report is in compact format.- Parameters:
chars- the indent of the rows in the row labels area. It can be a value between 0 and 127.- See Also:
-
IsPageOverThenDown
public bool IsPageOverThenDown()Returns true if first are displayed the fields in the report filter area from left to right, false if first are displayed the fields in the report filter area from top to bottom- Returns:
- true if first are displayed the fields in the report filter area from left to right, false if first are displayed the fields in the report filter area from top to bottom
- See Also:
-
setPageOverThenDown
public void setPageOverThenDown(bool isPageOverThenDown) Sets if first are displayed the fields in the report filter area from left to right, or if first are displayed the fields in the report filter area from top to bottom- Parameters:
isPageOverThenDown- true if first are displayed the fields in the report filter area from left to right, false otherwise- See Also:
-
getPageWrap
public int getPageWrap()Returns the number of fields to display before taking up another column or row.- Returns:
- the number of fields to display before taking up another column or row
- See Also:
-
setPageWrap
public void setPageWrap(int fields) Sets the number of fields to display before taking up another column or row.- Parameters:
fields- the number of fields to display before taking up another column or row. It can be a value between 0 and 255.- See Also:
-
ShowError
public bool ShowError()Returns true if a specific text is displayed in a cell instead of the error message, false otherwise.- Returns:
- true if a specific text is displayed in a cell instead of the error message, false otherwise
- See Also:
-
getErrorValue
public System.String getErrorValue()Returns the text that is displayed in a cell instead of the error message.- Returns:
- the text that is displayed in a cell instead of the error message
- See Also:
-
setErrorValue
public void setErrorValue(bool showError, System.String value) Sets the text that is displayed in a cell instead of the error message.- Parameters:
showError- true if the custom text is applied, false otherwisevalue- the text that is displayed in a cell instead of the error message- See Also:
-
ShowEmptyCells
public bool ShowEmptyCells()Returns true if a specific text is displayed in a cell instead of a blank cell, false otherwise.- Returns:
- true if a specific text is displayed in a cell instead of a blank cell, false otherwise
- See Also:
-
getEmptyCellValue
public System.String getEmptyCellValue()Returns the text that is displayed in a cell instead of a blank cell.- Returns:
- the text that is displayed in a cell instead of a blank cell
- See Also:
-
setEmptyCellValue
public void setEmptyCellValue(bool showEmptyCell, System.String value) Sets the text that is displayed in a cell instead of a blank cell.- Parameters:
showEmptyCell- true if the custom text is applied, false otherwisevalue- the text that is displayed in a cell instead of a blank cell- See Also:
-
IsPreserveCellFormattingOnUpdate
public bool IsPreserveCellFormattingOnUpdate()Returns true if the layout and format is preserved each time an operation is performed on the pivot table, false otherwise.- Returns:
- true if the layout and format is preserved each time an operation is performed on the pivot table, false otherwise
- See Also:
-
setPreserveCellFormattingOnUpdate
public void setPreserveCellFormattingOnUpdate(bool preserve) Sets if the layout and format is preserved each time an operation is performed on the pivot table.- Parameters:
preserve- true if the layout and format is preserved each time an operation is performed on the pivot table, false otherwise- See Also:
-
IsAutofitColumnWidthsOnUpdate
public bool IsAutofitColumnWidthsOnUpdate()Returns true if the pivot table columns are adjusted automatically to fit the cell content, false if the current width is kept.- Returns:
- true if the pivot table columns are adjusted automatically to fit the cell content, false if the current width is kept
- See Also:
-
setAutofitColumnWidthsOnUpdate
public void setAutofitColumnWidthsOnUpdate(bool autofit) Sets if the pivot table columns are adjusted automatically to fit the cell content or the current width is kept.- Parameters:
autofit- true if the pivot table columns are adjusted automatically to fit the cell content, false if the current width is kept- See Also:
-
ShowGrandTotalsForRows
public bool ShowGrandTotalsForRows()Returns true if the pivot table contains grand totals for rows, false otherwise.- Returns:
- true if the pivot table contains grand totals for rows, false otherwise
- See Also:
-
setShowGrandTotalsForRows
public void setShowGrandTotalsForRows(bool show) Sets if the pivot table contains grand totals for rows.- Parameters:
show- the grand totals for rows for the pivot table- See Also:
-
ShowGrandTotalsForColumns
public bool ShowGrandTotalsForColumns()Returns true if the pivot table contains grand totals for columns, false otherwise.- Returns:
- true if the pivot table contains grand totals for columns, false otherwise
- See Also:
-
setShowGrandTotalsForColumns
public void setShowGrandTotalsForColumns(bool show) Sets if the pivot table contains grand totals for columns.- Parameters:
show- the grand totals for columns for the pivot table- See Also:
-
ShowSubtotalFilteredPageItems
public bool ShowSubtotalFilteredPageItems()Returns true if the pivot table includes or excludes report-filtered items in subtotals, false otherwise. Available only for Office 97-2003 file format.- Returns:
- true if the pivot table includes or excludes report-filtered items in subtotals, false otherwise
- See Also:
-
setSubtotalFilteredPageItems
public void setSubtotalFilteredPageItems(bool show) Sets if the pivot table includes or excludes report-filtered items in subtotal. Available only for Office 97-2003 file format.- Parameters:
show- true if the pivot table includes or excludes report-filtered items in subtotals, false otherwise- See Also:
-
AllowMultipleFiltersPerField
public bool AllowMultipleFiltersPerField()Returns true if all values, including those hidden by filtering, are included when the subtotals and the grand total are calculated, false otherwise.- Returns:
- true if all values, including those hidden by filtering, are included when the subtotals and the grand total are calculated, false otherwise
- See Also:
-
setAllowMultipleFiltersPerField
public void setAllowMultipleFiltersPerField(bool allow) Sets if all values, including those hidden by filtering, are included when the subtotals and the grand total are calculated.- Parameters:
allow- true if all values, including those hidden by filtering, are included when the subtotals and the grand total are calculated, false otherwise- See Also:
-
IsUseCustomListsWhenSorting
public bool IsUseCustomListsWhenSorting()Returns true if the custom lists are used when Excel sorts lists, false otherwise.- Returns:
- true if the custom lists are used when Excel sorts lists, false otherwise
- See Also:
-
setUseCustomListsWhenSorting
public void setUseCustomListsWhenSorting(bool useCustomListsWhenSorting) Sets if the custom lists are used when Excel sorts lists. The performance can be improved when sorting big volume of data by disabling this option.- Parameters:
useCustomListsWhenSorting- true if the custom lists are used when Excel sorts lists, false otherwise- See Also:
-
ShowDrillButtons
public bool ShowDrillButtons()Returns true if the expand/collapse buttons are visible, false otherwise.- Returns:
- true if the expand/collapse buttons are visible, false otherwise
- See Also:
-
setShowDrillButtons
public void setShowDrillButtons(bool show) Sets if the expand/collapse buttons are visible.- Parameters:
show- true if the expand/collapse buttons are visible, false otherwise- See Also:
-
ShowContextualTooltips
public bool ShowContextualTooltips()Returns true if the tooltips that show value, row, or column information for a field or data value are visible, false otherwise.- Returns:
- true if the tooltips that show value, row, or column information for a field or data value are visible, false otherwise
- See Also:
-
setShowContextualTooltips
public void setShowContextualTooltips(bool show) Sets if the tooltips that show value, row, or column information for a field or data value are visible.- Parameters:
show- true if the tooltips that show value, row, or column information for a field or data value are visible, false otherwise- See Also:
-
ShowHeaders
public bool ShowHeaders()Returns true if the captions at the top of the pivot table report and filter drop-down arrows on column and row labels are visible, false otherwise.- Returns:
- true if the captions at the top of the pivot table report and filter drop-down arrows on column and row labels are visible, false otherwise
- See Also:
-
setShowHeaders
public void setShowHeaders(bool showHeaders) Sets if the captions at the top of the pivot table report and filter drop-down arrows on column and row labels are visible.- Parameters:
showHeaders- true if the captions at the top of the pivot table report and filter drop-down arrows on column and row labels are visible, false otherwise- See Also:
-
IsClassicLayout
public bool IsClassicLayout()Returns true if the classic layout is selected, false otherwise.- Returns:
- true if the classic layout is selected, false otherwise
- See Also:
-
setClassicLayout
public void setClassicLayout(bool isClassicLayout) Sets if the classic layout is selected.- Parameters:
isClassicLayout- true if the classic layout is selected, false otherwise- See Also:
-
getSortOrder
public int getSortOrder()Returns the sort order of the fields in pivot table. Possible values are available inPivotTableclass.- Returns:
- the sort order of the fields in pivot table
- See Also:
-
setSortOrder
public void setSortOrder(int sortOrder) Sets the sort order of the fields in pivot table.- Parameters:
sortOrder- the sort order. Possible values are available inPivotTableclass.- See Also:
-
setCompactForm
public void setCompactForm()Sets the compact form for all the fields of the pivot table. -
setOutlineForm
public void setOutlineForm()Sets the outline form for all the fields of the pivot table. -
setTabularForm
public void setTabularForm()Sets the outline form for all the fields of the pivot table. -
PrintDrillButtons
public bool PrintDrillButtons()Returns true if the expand/collapse buttons are visible when the pivot table is printed, false otherwise.- Returns:
- true if the expand/collapse buttons are visible when the pivot table is printed, false otherwise
- See Also:
-
setPrintDrillButtons
public void setPrintDrillButtons(bool printDrillButtons) Sets if the expand/collapse buttons are visible when the pivot table is printed.- Parameters:
printDrillButtons- true if the expand/collapse buttons are visible when the pivot table is printed, false otherwise- See Also:
-
RepeatRowLabels
public bool RepeatRowLabels()Returns true if the row labels are replicated on each printed page, false otherwise.- Returns:
- true if the row labels are replicated on each printed page, false otherwise
- See Also:
-
setRepeatRowLabels
public void setRepeatRowLabels(bool repeatRowLabels) Sets if the row labels are replicated on each printed page.- Parameters:
repeatRowLabels- true if the row labels are replicated on each printed page, false otherwise- See Also:
-
PrintTitles
public bool PrintTitles()Returns true if the row and column field headers and column item labels are replicated on each printed page, false otherwise.- Returns:
- true if the row and column field headers and column item labels are replicated on each printed page, false otherwise
- See Also:
-
setPrintTitles
public void setPrintTitles(bool printTitles) Sets if the row and column field headers and column item labels are replicated on each printed page.- Parameters:
printTitles- true if the row and column field headers and column item labels are replicated on each printed page, false otherwise- See Also:
-
IsEnabledShowDetails
public bool IsEnabledShowDetails()Returns true if the drilling down to detail data from the data source, and then displaying the data on a new worksheet is enabled, false otherwise.- Returns:
- true if the drilling down to detail data from the data source, and then displaying the data on a new worksheet is enabled, false otherwise
- See Also:
-
setEnableShowDetails
public void setEnableShowDetails(bool enable) Sets if the drilling down to detail data from the data source, and then displaying the data on a new worksheet is enabled.- Parameters:
enable- true if the drilling down to detail data from the data source, and then displaying the data on a new worksheet is enabled, false otherwise- See Also:
-
getStyle
public System.String getStyle()Returns the style of the pivot table. The look and feel is valid only for Office 2007 or later files.- Returns:
- the style of the pivot table. Possible values are available in
PivotTableclass. - See Also:
-
setStyle
public void setStyle(System.String style) Sets the style of the pivot table. The look and feel is valid only for Office 2007 or later files.- Parameters:
style- the style of the pivot table. Possible values are available inPivotTableclass.- See Also:
-
ShowRowHeaders
public bool ShowRowHeaders()Returns true if the row headers in the banding style are displayed, false otherwise.- Returns:
- true if the row headers in the banding style are displayed, false otherwise
- See Also:
-
setShowRowHeaders
public void setShowRowHeaders(bool show) Sets if the row headers in the banding style are displayed.- Parameters:
show- true if the row headers in the banding style are displayed, false otherwise- See Also:
-
ShowColumnHeaders
public bool ShowColumnHeaders()Returns true if the column headers in the banding style are displayed, false otherwise.- Returns:
- true if the column headers in the banding style are displayed, false otherwise
- See Also:
-
setShowColumnHeaders
public void setShowColumnHeaders(bool show) Sets if the column headers in the banding style are displayed.- Parameters:
show- true if the column headers in the banding style are displayed, false otherwise- See Also:
-
ShowRowStripes
public bool ShowRowStripes()Returns true if each row is alternated with a lighter and darker color, false otherwise.- Returns:
- true if each row is alternated with a lighter and darker color, false otherwise
- See Also:
-
setShowRowStripes
public void setShowRowStripes(bool show) Sets if the row headers in the banding style are displayed.- Parameters:
show- true if the row headers in the banding style are displayed, false otherwise- See Also:
-
ShowColumnStripes
public bool ShowColumnStripes()Returns true if each column is alternated with a lighter and darker color, false otherwise.- Returns:
- true if each column is alternated with a lighter and darker color, false otherwise
- See Also:
-
setShowColumnStripes
public void setShowColumnStripes(bool show) Sets if the column headers in the banding style are displayed.- Parameters:
show- true if the column headers in the banding style are displayed, false otherwise- See Also:
-
Clone
Creates and returns a copy of this object.- Returns:
- a clone of this instance.
-