Настройка параметра сводной таблицы — для пустого Cells Показать

Contents
[ ]

Aspose.Cells обеспечиваетСводная таблица.setDisplayNullString() иСводная таблица.setNullString()свойства для установки опции сводной таблицы “Для пустых ячеек показывать”.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(SettingPivotTableOption.class);
Workbook wb = new Workbook(dataDir + "input.xlsx");
PivotTable pt = wb.getWorksheets().get(0).getPivotTables().get(0);
// Indicating if or not display the empty cell value
pt.setDisplayNullString(true);
// Indicating the null string
pt.setNullString("null");
pt.calculateData();
pt.setRefreshDataOnOpeningFile(false);
wb.save(dataDir + "output.xlsx");