Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes, you want to format pivot table cells. For example, you want to apply a background color to pivot table cells. Aspose.Cells provides two methods PivotTable.formatAll() and PivotTable.format(), which you can use for this purpose.
PivotTable.formatAll() applies the style to the entire pivot table while PivotTable.format() applies the style to a single cell of the pivot table.
The following sample code formats the entire pivot table with a light blue color and then formats the second table row yellow.
The input pivot table, before executing the code

The ouput pivot table, after the executing the code

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.