Nascondere la Visualizzazione dei Valori Zero nel Foglio di Lavoro

Come nascondere i valori zero in Excel

Per nascondere i valori zero in un foglio di lavoro in Microsoft Excel (ad esempio Microsoft Excel 2003):

  1. Dal menu Strumenti, selezionare Opzioni, e quindi selezionare la scheda Visualizza.
  2. Deselezionare l’opzione Valori zero.
  3. Fai clic su OK.

Come nascondere i valori zero con Aspose.Cells per la libreria Excel Python

Vedere il seguente esempio di codice che dimostra come nascondere gli zeri usando Aspose.Cells for Python via .NET.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
# Create a new Workbook object
workbook = Workbook(dataDir + "book1.xlsx")
# Get First worksheet of the workbook
sheet = workbook.worksheets[0]
# Hide the zero values in the sheet
sheet.display_zeros = False
# Save the workbook
workbook.save(dataDir + "outputfile.out.xlsx")