Python でスクロール バーを表示または非表示にする

Aspose.Cells - スクロール バーの表示または非表示

行/列ヘッダーの非表示

を使用して行/列ヘッダーを非表示にするにはAspose.Cells Java for Python、 電話DisplayHideRowColumnHeadersモジュール。

Python コード

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

行/列ヘッダーを表示する

Worksheet クラスの setRowColumnHeadersVisible(true) メソッドを使用して、行と列のヘッダーを表示します。

Python コード

 # Displaying the headers of rows and columns

worksheet.setRowColumnHeadersVisible(true)

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

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