تعيين خيار الجدول المحوري - لعرض Cells فارغ

Contents
[ ]

يوفر Aspose.Cells ملفPivotTable.setDisplayNullString () وPivotTable.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");