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

Aspose.Cells - タブの表示または非表示

タブを非表示にする

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

ルビーコード

 data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'

\# Instantiating a Workbook object by excel file path

workbook = Rjb::import('com.aspose.cells.Workbook').new(data_dir + '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(data_dir + "output.xls")

puts "Tabs are now hidden, please check the output file."

タブを表示する

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

ルビーコード

 # Displaying the tabs of the Excel file

workbook.getSettings().setSowTabs(true)

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

ダウンロード**タブを非表示または表示または非表示にする (Aspose.Cells)**以下のソーシャルコーディングサイトのいずれかから: