Pivot Tablo Seçeneğini Ayarlama - Boş İçin Cells Göster
Contents
[
Hide
]
Aspose.Cells’i kullanarak farklı pivot tablo seçenekleri ayarlayabilirsiniz. Böyle bir seçenek “Boş hücreler için göster” seçeneğidir. Bu seçeneği ayarlayarak, bir pivot tablodaki tüm boş hücreler belirtilen bir dize olarak görüntülenir.
Microsoft Excel’de Pivot Tablo Seçeneğini Ayarlama
Microsoft Excel’de bu seçeneği bulmak ve ayarlamak için:
- Bir pivot tablo seçin ve sağ tıklayın.
- SeçmeÖzet Tablo Seçenekleri.
- seçinDüzen ve Biçim sekme.
- 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |