Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes, the user needs to specify the absolute position of the pivot items, Aspose.Cells API has exposed a few new properties and a method to achieve this user requirement.
Please note, it is necessary to call the PivotTable.refreshData and PivotTable.calculateData methods before using PivotItem.setPosition(), PivotItem.setPositionInSameParentNode() properties and PivotItem.move(int count, boolean isSameParent) method.
The following sample code creates a Pivot Table and then it specifies the Pivot Items positions in the same parent node.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.