Pivot Tablo Seçeneğini Ayarlama - Boş İçin Cells Göster

Microsoft Excel’de Pivot Tablo Seçeneğini Ayarlama

Microsoft Excel’de bu seçeneği bulmak ve ayarlamak için:

  1. Bir pivot tablo seçin ve sağ tıklayın.
  2. SeçmeÖzet Tablo Seçenekleri.
  3. seçinDüzen ve Biçim sekme.
  4. seçinBoş hücreler için göster seçeneği ve bir dize belirtin.

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

Aspose.Cells şunları sağlar:PivotTable.DisplayNullString vePivotTable.NullString “Boş hücreler için göster” pivot tablo seçeneğini ayarlamak için özellikler.

// 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