Boş Hücreler İçin pivot tablo seçeneğini ayarlayın

Boş Hücreler İçin Göster Pivot Tablo Seçeneği Ayarlama

Bu seçeneği bulup Microsoft Excel’de ayarlamak için:

  1. Bir pivot tablo seçin ve sağ tıklayın.
  2. PivotTablo Seçenekleri‘ni seçin.
  3. Düzen ve Biçim sekmesini seçin.
  4. Boş hücreler için göster seçeneğini seçin ve bir dize belirtin.

Aspose.Cells Kullanarak Pivot Tablo Seçeneği Ayarlama

Aspose.Cells, “Boş hücreler için göster” pivot tablo seçeneğini ayarlamak için PivotTable.DisplayNullString ve PivotTable.NullString özelliklerini sağlar.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
Workbook wb = new Workbook(dataDir + "input.xlsx");
PivotTable pt = wb.Worksheets[0].PivotTables[0];
// Indicating if or not display the empty cell value
pt.DisplayNullString = true;
// Indicating the null string
pt.NullString = "null";
pt.CalculateData();
pt.RefreshDataOnOpeningFile = false;
wb.Save(dataDir+ "output_out.xlsx");

İlgili Makaleler