Ocultar la visualización de los valores cero en la hoja de cálculo
Contents
[
Hide
]
A veces, es necesario ocultar los valores cero en una hoja de cálculo. Puede ser una preferencia personal o un estándar de formato.
Para ocultar los valores cero en una hoja de cálculo en Microsoft Excel (por ejemplo, Microsoft Excel 2003):
- Desde el menú Herramientas, seleccione Opciones, y luego seleccione la pestaña Ver.
- Desmarque la opción Valores de cero.
- Haz clic en Aceptar.
Consulte el siguiente código de ejemplo que demuestra cómo ocultar los ceros usando 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"); |