Bildlaufleisten in Python anzeigen oder ausblenden

Aspose.Cells – Bildlaufleisten anzeigen oder ausblenden

Zeilen-/Spaltenüberschriften ausblenden

Zeilen-/Spaltenüberschriften ausblenden mitAspose.Cells Java for Python , AnrufDisplayHideRowColumnHeader Modul.

Python Code

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

# Hiding the vertical scroll bar of the Excel file

workbook.getSettings().setVScrollBarVisible(False)

# Hiding the horizontal scroll bar of the Excel file

workbook.getSettings().setHScrollBarVisible(False)

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

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

\# Print message

print "Scroll bars are now hidden, please check the output document."

Zeilen-/Spaltenüberschriften sichtbar machen

Machen Sie Zeilen- und Spaltenüberschriften sichtbar, indem Sie die setRowColumnHeadersVisible(true)-Methode der Worksheet-Klasse verwenden.

Python Code

 # Displaying the headers of rows and columns

worksheet.setRowColumnHeadersVisible(true)

Laufcode herunterladen

DownloadHello World (Aspose.Cells) von einer der unten genannten Social-Coding-Sites: