Sha256: 6b944e447a9ef6e5d4ca20d1925fe1ed4f701b187a73feb32fb0c497345079c9
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
module Asposecellsjava module SplitPanes 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') # Set the active cell workbook.getWorksheets().get(0).setActiveCell("A20") # Split the worksheet window workbook.getWorksheets().get(0).split() # Saving the modified Excel file in default (that is Excel 2003) format workbook.save(data_dir + "SplitPanes output.xls") puts "Panes split successfully." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asposecellsjava-0.0.3 | lib/asposecellsjava/splitpanes.rb |
asposecellsjava-0.0.2 | lib/asposecellsjava/splitpanes.rb |
asposecellsjava-0.0.1 | lib/asposecellsjava/splitpanes.rb |