Sha256: 44e4a59f3f7a56bc9a8e2ad6ab4da571beab2eb73ab08c596218c2e3721a0ddc
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
module Asposecellsjava module DisplayHideTabs def initialize() 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." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asposecellsjava-0.0.3 | lib/asposecellsjava/displayhidetabs.rb |
asposecellsjava-0.0.2 | lib/asposecellsjava/displayhidetabs.rb |
asposecellsjava-0.0.1 | lib/asposecellsjava/displayhidetabs.rb |