Nascondi o mostra un foglio di lavoro in Python

Aspose.Cells - Nascondi o mostra un foglio di lavoro

Nascondere un foglio di lavoro

Per nascondere il foglio di lavoro utilizzando Aspose.Cells Java per Ruby, chiamahideunhideworksheet modulo.

Python Cod

 workbook = self.Workbook(self.dataDir + "Book1.xls")

# Accessing the first worksheet in the Excel file

worksheets = workbook.getWorksheets()

worksheet = worksheets.get(0)

# Hiding the first worksheet of the Excel file

worksheet.setVisible(True)

# Saving the modified Excel file in default (that is Excel 2003) format

workbook.save(self.dataDir + "output.xls")

\# Print message

print "Worksheet 1 is now hidden, please check the output document."

Mostrando un foglio di lavoro

Gli sviluppatori possono rendere visibile un foglio di lavoro impostando l’estensionesetVisibile( VERO *)*metodo delFoglio di lavoroclasse.

Python Cod

 # Displaying the worksheet of the Excel file

worksheet.setVisible(true)

Scarica il codice in esecuzione

ScaricamentoNascondere o scoprire un foglio di lavoro (Aspose.Cells) da uno qualsiasi dei siti di social coding sotto indicati: