Visa eller dölj rullningslister i Python

Aspose.Cells - Visa eller dölj rullningslister

Döljer rad-/kolumnrubriker

För att dölja rad-/kolumnrubriker med hjälp avAspose.Cells Java for Python , ringa uppDisplayHideRowColumnHeaders modul.

Python Kod

 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."

Gör rad-/kolumnrubriker synliga

Gör rad- och kolumnrubriker synliga genom att använda arbetsbladsklassens setRowColumnHeadersVisible(true) metod.

Python Kod

 # Displaying the headers of rows and columns

worksheet.setRowColumnHeadersVisible(true)

Ladda ner Running Code

Ladda nerHello World (Aspose.Cells) från någon av nedan nämnda webbplatser för social kodning: