Set layout settings
Refer to the following example code to see how to change layout of a Pivot Table.