Use the RowTotalsLocation and ColumnTotalsLocation properties to specify the position of Row Totals, Column Totals and Grand Totals. To simultaneously set both RowTotalsLocation and ColumnTotalsLocation properties, the SetBothTotalsLocation method can be used.
Note that if the RowTotalsLocation property is set to PivotRowTotalsLocation.Tree, the ShowRowTotals and ShowTotalsForSingleValues properties can't be set to False, and must remain True.