Nascondere la Visualizzazione dei Valori Zero nel Foglio di Lavoro
Contents
[
Hide
]
A volte è necessario nascondere i valori zero in un foglio di calcolo. Potrebbe essere una preferenza personale o uno standard di formattazione.
Per nascondere i valori zero in un foglio di lavoro in Microsoft Excel (ad esempio Microsoft Excel 2003):
- Dal menu Strumenti, selezionare Opzioni, e quindi selezionare la scheda Visualizza.
- Deselezionare l’opzione Valori zero.
- Fai clic su OK.
Si prega di vedere il seguente codice di esempio che dimostra come nascondere gli zeri utilizzando Aspose.Cells.
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); | |
// Create a new Workbook object | |
Workbook workbook = new Workbook(dataDir + "book1.xlsx"); | |
// Get First worksheet of the workbook | |
Worksheet sheet = workbook.Worksheets[0]; | |
// Hide the zero values in the sheet | |
sheet.DisplayZeros = false; | |
// Save the workbook | |
workbook.Save(dataDir + "outputfile.out.xlsx"); |