Mostrar u ocultar pestañas en Python

Aspose.Cells - Mostrar ocultar pestañas

Ocultar pestañas

Para ocultar pestañas usandoAspose.Cells Java para rubí , llamadaMostrar ocultar pestañas módulo.

Código Python

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

# Hiding the tabs of the Excel file

workbook.getSettings().setShowTabs(False)

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

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

\# Print message

print "Tabs are now hidden, please check the output file."

Hacer pestañas visibles

Haga que las pestañas sean visibles con el método setSheetTabBarHidden(false) de la clase Workbook.

Código Python

 # Displaying the tabs of the Excel file

workbook.getSettings().setSowTabs(true)

Descargar código de ejecución

DescargarHello World (Aspose.Cells) de cualquiera de los sitios de codificación social mencionados a continuación: