# PivotTableType complexType

Contains information on a PivotTable.

## Type Information

Namespace | urn:schemas-microsoft-com:office:excel
Schema name | XML Spreadsheet 2000

## Elements and Attributes

### Child Elements

Element | Description
--- | ---
Name | Specifies the name of the PivotTable.
DataValueEditing | Contains a Boolean value indicating that the user is allowed to edit the cells in the data area of the PivotTable view or report.
QTSource | Describes the properties of the query table on which a PivotTable view or report is based.
ErrorString | Specifies the string to display in cells with errors. Used in conjunction with DisplayErrorString.
NullString | Specifies the string to display in cells with no value. Used in conjunction with NoDisplayNullString.
PageFieldOrder | Contains an enumeration indicating how the page fields are laid out when there are multiple PivotFields in the page area.
PageFieldWrapCount | Specifies a number indicating how many page fields to display before starting another row or column.
DisableDrillDown | Contains a Boolean indicating if the user is prevented from drilling down (double clicking) on a PivotItem or aggregate value.
DisableFieldDialog | Contains a Boolean indicating if the user is prevented from displaying the PivotField properties dialogs.
DisableWizard | Contains a Boolean indicating if the user is prevented from displaying the PivotTable Wizard.
DisplayErrorString | Causes the ErrorString to be displayed. Used in conjunction with ErrorString.
NoPreserveFormatting | Contains a Boolean indicating whether the formatting applied by the user to the PivotTable cells is discarded on refresh.
HasNoAutoFormat | Contains a Boolean indicating whether autoformatting has been applied to the PivotTable view. Used in conjunction with AutoFormatName, AutoFormatNumber, AutoFormatBorder, AutoFormatPattern, AutoFormatAlignment and NoAutoFormatWidth.
SubtotalHiddenPageItems | Specifies that data for hidden PivotItems for PivotFields in the data area are not excluded from subtotals.
NoAutoFormatWidth | Specifies that column widths from the style specified in the AutoFormatName element are not to be applied.
NoRowGrand | Contains a Boolean indicating if no grand totals should be displayed for the PivotTable rows.
NoColumnGrand | Contains a Boolean indicating if no grand totals should be displayed for the PivotTable columns.
NoDisplayNullString | Contains a Boolean indicating whether the custom NULL string should not be displayed. Used in conjunction with NullString.
NoPrintRepeatItems | Contains a Boolean indicating whether PivotItem names should be repeated at the top of each printed page.
PivotView | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
Selection | Contains information about the current PivotTable selection.
AutoFormatAlignment | Specifies that alignments from the style defined in the AutoFormatName element are to be applied.
AutoFormatBorder | Specifies that border settings from the style defined in the AutoFormatName element are to be applied.
AutoFormatFont | Specifies that fonts from the style defined in the AutoFormatName element are to be applied.
AutoFormatName | Specifies the name of the built-in format to be applied.
AutoFormatNumber | Specifies that number formatting from the style defined in the AutoFormatName element is to be applied.
AutoFormatPattern | Specifies that the pattern from the style defined in the AutoFormatName element is to be applied.
GrandTotalString | Specifies the string to be displayed for grand totals.
PrintSetTitles | Specifies the row and column titles from the PivotTable to be printed (rather than the titles from the spreadsheet).
MergeLabels | Specifies that row or column titles that span multiple cells should be merged into a single cell.
PageFieldStyle | Specifies the name of the Excel style to apply to each of the PivotField-PivotItem headers displayed in the page area.
PLExport | Contains a Boolean indicating whether the PivotTable was created by the Office Web Components PivotList control.
ImmediateItemsOnDrop | Specifies that the PivotTable view is to be immediately updated when new items are dropped into it.
ShowPageMultipleItemLabel | Specifies the text to display for the PivotItem header in the page area when two or more PivotItems, but not all PivotItems, have been selected.
SmallGrid | Contains a Boolean indicating if a PivotTable view without a data field should show the small grid, which doesn't have very big drop areas.
TableStyle | Specifies the name of the Excel style to apply to the main table area of the PivotTable.
Tag | Specifies a user-defined string that is associated with this PivotTable.
VacatedStyle | Specifies the name of the Excel style to apply to the cells left blank when a PivotTable shrinks during a refresh operation.
HideTotalsAnnotation | Specifies that asterisks be displayed in subtotals and totals when visual totals are not used in OLAP-based PivotTable views.
ShowCellBackgroundFromOLAP | Contains a Boolean value indicating that a PivotTable based on an OLAP source should format the data and aggregate cells in the PivotTable view using the background color from the OLAP source.
HideDropDowns | Contains a Boolean value indicating whether the drop-down lists for the fields in the PivotTable view should be shown.
NoViewCalculatedMembers | Contains a Boolean value indicating whether calculated members should be hidden in a PivotTable view or report.
VisualTotals | Indicates that totals should be based on visible data only for OLAP-based PivotTable views.
Location | Specifies the bounding cell reference the PivotTable occupies including the page area.
PLPivotField | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
PLTotal | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
DataMember | Specifies whether the data source of a PivotList component is data from Microsoft Excel that was saved to a Web page or data from a Data Source Control component.
DataAxisEmpty | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
DisplayFieldList | Contains a Boolean indicating that the PivotField list window should not be shown.
NoAutoFit | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
Height | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
Width | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
MaxHeight | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
MaxWidth | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
MemberExpand | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
ConnectionString | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
CacheDetails | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
FieldListTop | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
FieldListBottom | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
FieldListRight | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
FieldListLeft | This element or attribute is not created or processed by Excel. It is designed to be used by external applications and components.
PivotAxis | Specifies additional information about a PivotTable axis or location.
VersionUpdateableMin | Contains a number indicating the earliest version of Excel that can update this PivotTable view.
VersionLastUpdate | Contains a number indicating which version of Excel last updated this PivotTable view.
VersionRefreshableMin | Contains a number indicating the earliest version of Excel that can refresh this PivotTable view.
DefaultVersion | Contains a number indicating what version of Excel was used to create this PivotTable view.
PivotField | Contains information about a PivotField.
CubeField | Contains information about a cube field (a hierarchy in an OLAP-based PivotTable view).
CalculatedMember | Contains information about a calculated member in an OLAP-based PivotTable view or report.
Name | Specifies the name of the OLAP calculated member.
MemberName | Specifies a caption (display name) for the custom OLAP calculated member (not used for sets).
ParentUniqueName | Specifies a unique name for the parent member of the OLAP calculated member (not used for sets).
SourceHierarchy | Specifies a unique name for the hierarchy with which the OLAP calculated member is associated (not used for sets).
SourceHierarchyLevel | Contains an index of the hierarchy level to which a particular OLAP member property applies. A value of 32767 indicates that the OLAP member property applies to all the levels in a hierarchy.
Formula | Contains the MDX representation of the formula for the OLAP calculated member.
SolveOrder | Specifies where in a sequence of calculations a calculated member will be computed and applied.
Invalid | Contains a Boolean value indicating that the OLAP cube changed in such a way as to invalidate the OLAP calculated member.
Set | Contains a Boolean value indicating that a calculation creates a custom OLAP set.
PTLineItems | Contains information describing the detailed layout of a PivotTable view.
PTSource | Contains information describing the data source of the PivotTable view.
PTFormula | Contains information describing a PivotTable formula that doesn't apply to a whole PivotField or all PivotItems with the same name.
PTFormat | Contains information describing some formatting applied to the PivotTable view.

### Attributes

None.

## Definition

    <xsd:complexType name="PivotTableType" >
      <xsd:sequence>
        <xsd:element name="Name" type="xsd:string">
        </xsd:element>
        <xsd:element name="DataValueEditing" minOccurs="0">
        </xsd:element>
        <xsd:element name="QTSource" type="QTSourceType" minOccurs="0">
        </xsd:element>
        <xsd:element name="ErrorString" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="NullString" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="PageFieldOrder" type="PageFieldOrderType" default="DownThenOver" minOccurs="0">
        </xsd:element>
        <xsd:element name="PageFieldWrapCount" type="PageFieldWrapCountType" minOccurs="0">
        </xsd:element>
        <xsd:element name="DisableDrillDown" minOccurs="0">
        </xsd:element>
        <xsd:element name="DisableFieldDialog" minOccurs="0">
        </xsd:element>
        <xsd:element name="DisableWizard" minOccurs="0">
        </xsd:element>
        <xsd:element name="DisplayErrorString" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoPreserveFormatting" minOccurs="0">
        </xsd:element>
        <xsd:element name="HasNoAutoFormat" minOccurs="0">
        </xsd:element>
        <xsd:element name="SubtotalHiddenPageItems" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoAutoFormatWidth" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoRowGrand" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoColumnGrand" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoDisplayNullString" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoPrintRepeatItems" minOccurs="0">
        </xsd:element>
        <xsd:element name="PivotView" type="PivotViewType" minOccurs="0">
        </xsd:element>
        <xsd:element name="Selection" type="SelectionType" minOccurs="0">
        </xsd:element>
        <xsd:element name="AutoFormatAlignment" minOccurs="0">
        </xsd:element>
        <xsd:element name="AutoFormatBorder" minOccurs="0">
        </xsd:element>
        <xsd:element name="AutoFormatFont" minOccurs="0">
        </xsd:element>
        <xsd:element name="AutoFormatName" type="AutoFormatNameType" default="PivotTableClassic" minOccurs="0">
        </xsd:element>
        <xsd:element name="AutoFormatNumber" minOccurs="0">
        </xsd:element>
        <xsd:element name="AutoFormatPattern" minOccurs="0">
        </xsd:element>
        <xsd:element name="GrandTotalString" type="xsd:string" default="Grand Total" minOccurs="0">
        </xsd:element>
        <xsd:element name="PrintSetTitles" minOccurs="0">
        </xsd:element>
        <xsd:element name="MergeLabels" minOccurs="0">
        </xsd:element>
        <xsd:element name="PageFieldStyle" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="PLExport" minOccurs="0">
        </xsd:element>
        <xsd:element name="ImmediateItemsOnDrop" minOccurs="0">
        </xsd:element>
        <xsd:element name="ShowPageMultipleItemLabel" minOccurs="0">
        </xsd:element>
        <xsd:element name="SmallGrid" minOccurs="0">
        </xsd:element>
        <xsd:element name="TableStyle" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="Tag" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="VacatedStyle" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="HideTotalsAnnotation" minOccurs="0">
        </xsd:element>
        <xsd:element name="ShowCellBackgroundFromOLAP" minOccurs="0">
        </xsd:element>
        <xsd:element name="HideDropDowns" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoViewCalculatedMembers" minOccurs="0">
        </xsd:element>
        <xsd:element name="VisualTotals" minOccurs="0">
        </xsd:element>
        <xsd:element name="Location" type="xsd:string">
        </xsd:element>
        <xsd:element name="PLPivotField" type="PLPivotFieldType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="PLTotal" type="PLTotalType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="DataMember" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="DataAxisEmpty" minOccurs="0">
        </xsd:element>
        <xsd:element name="DisplayFieldList" minOccurs="0">
        </xsd:element>
        <xsd:element name="NoAutoFit" minOccurs="0">
        </xsd:element>
        <xsd:element name="Height" type="xsd:double" minOccurs="0">
        </xsd:element>
        <xsd:element name="Width" type="xsd:double" minOccurs="0">
        </xsd:element>
        <xsd:element name="MaxHeight" type="xsd:double" default="32000" minOccurs="0">
        </xsd:element>
        <xsd:element name="MaxWidth" type="xsd:double" default="32000" minOccurs="0">
        </xsd:element>
        <xsd:element name="MemberExpand" type="MemberExpandType" minOccurs="0">
        </xsd:element>
        <xsd:element name="ConnectionString" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="CacheDetails" type="CacheDetailsType" default="True" minOccurs="0">
        </xsd:element>
        <xsd:element name="FieldListTop" type="xsd:int" minOccurs="0">
        </xsd:element>
        <xsd:element name="FieldListBottom" type="xsd:int" minOccurs="0">
        </xsd:element>
        <xsd:element name="FieldListRight" type="xsd:int" minOccurs="0">
        </xsd:element>
        <xsd:element name="FieldListLeft" type="xsd:int" minOccurs="0">
        </xsd:element>
        <xsd:element name="PivotAxis" type="PivotAxisType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="VersionUpdateableMin" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="VersionLastUpdate" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="VersionRefreshableMin" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="DefaultVersion" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="PivotField" type="PivotFieldType" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="CubeField" type="CubeFieldType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="CalculatedMember" minOccurs="0">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="Name" type="xsd:string" minOccurs="0">
              </xsd:element>
              <xsd:element name="MemberName" type="xsd:string" minOccurs="0">
              </xsd:element>
              <xsd:element name="ParentUniqueName" type="xsd:string" minOccurs="0">
              </xsd:element>
              <xsd:element name="SourceHierarchy" type="xsd:string" minOccurs="0">
              </xsd:element>
              <xsd:element name="SourceHierarchyLevel" type="xsd:integer" minOccurs="0">
              </xsd:element>
              <xsd:element name="Formula" type="xsd:string" minOccurs="0">
              </xsd:element>
              <xsd:element name="SolveOrder" type="xsd:integer" minOccurs="0">
              </xsd:element>
              <xsd:element name="Invalid" minOccurs="0">
              </xsd:element>
              <xsd:element name="Set" minOccurs="0">
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="PTLineItems" type="PTLineItemsType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="PTSource" type="PTSourceType" minOccurs="0">
        </xsd:element>
        <xsd:element name="PTFormula" type="PTFormulaType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element name="PTFormat" type="PTFormatType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp