Python でタブを表示または非表示にする

Aspose.Cells - 表示非表示タブ

タブを非表示にする

を使用してタブを非表示にするにはAspose.Cells Ruby の場合は Java、 電話表示非表示タブモジュール。

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

タブを表示する

Workbook クラスの setSheetTabBarHidden(false) メソッドでタブを表示します。

Python コード

 # Displaying the tabs of the Excel file

workbook.getSettings().setSowTabs(true)

実行中のコードをダウンロード

ダウンロード**Hello World (Aspose.Cells)**以下のソーシャルコーディングサイトのいずれかから: