Hi Zietse,
We would like to inform you that if the conditional
formatting is applied, pivot table will be exported with the formatted value
cells. This is the default behavior in our pivot table. However, using excelQueryCellInfo
event, you can able to restrict the conditional formatting styles for
specific pivot table cells before exporting to an Excel document based on your
need. Please refer the below code example.
Code Example:
|
this.gridSettings = {
excelQueryCellInfo: this.observable.subscribe(args => {
if ((args as any).style.fontColor && (args as any).style.fontSize && (args as any).style.fontName) {
(args as any).style.fontColor =
'#000000';
(args as any).style.fontSize =
10;
(args as any).style.fontName =
'unset';
}
})
as any
}
as GridSettings;
document.getElementById('export').onclick = () => {
this.pivotObj.excelExport();
};
|
Output screenshot:
Pivot table:

Excel Document:

Meanwhile, we have prepared a sample for your reference.
Sample: https://stackblitz.com/edit/angular-z3org2-1cvzuy?file=src%2Fapp.component.html,src%2Fapp.component.ts
Please let us know if you have any concerns.
Regards,
Angelin Faith Sheeba.