Visa eller dölj flikar i Python

Aspose.Cells - Visa göm flikar

Döljer flikar

För att dölja flikar medAspose.Cells Java för Ruby , ringa uppvisagömflikar modul.

Python Kod

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

Göra flikar synliga

Gör flikar synliga med arbetsboksklassens setSheetTabBarHidden(false) metod.

Python Kod

 # Displaying the tabs of the Excel file

workbook.getSettings().setSowTabs(true)

Ladda ner Running Code

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