Mostrar u ocultar líneas de división en Python

Aspose.Cells - Cómo mostrar u ocultar líneas de división

Cómo ocultar líneas de división

Para ocultar la hoja de trabajo usandoAspose.Cells Java para Ruby, llame a displayhidegridlines módulo.

Python Código

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

# Accessing the first worksheet in the Excel file

worksheets = workbook.getWorksheets()

worksheet = worksheets.get(0)

# Hiding the grid lines of the first worksheet of the Excel file

worksheet.setGridlinesVisible(False)

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

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

\# Print message

print "Grid lines are now hidden on sheet 1, please check the output document."

Cómo mostrar líneas de cuadrícula

Para hacer visibles las líneas de cuadrícula, utilice el método setGridlinesVisible(true) de la clase Worksheet.

Python Código

 # Displaying the gridlines of the worksheet

worksheet.setGridlinesVisible(True)

Descargar código de ejecución

DescargarMostrar líneas de cuadrícula ocultas (Aspose.Cells) de cualquiera de los sitios de codificación social mencionados a continuación: