Sha256: cf1db4ee3abadb678a3997e772f710305854e1275769bbb6a7fadfcca787eb29

Contents?: true

Size: 416 Bytes

Versions: 12

Compression:

Stored size: 416 Bytes

Contents

#!/usr/bin/env ruby -w -s
# -*- coding: utf-8 -*-
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"

#```ruby
require 'axlsx'
package = Axlsx::Package.new
package.workbook do |workbook|
  workbook.add_worksheet name: 'merged_cells' do |sheet|
    4.times do
      sheet.add_row %w(a b c d e f g)
    end
    sheet.merge_cells "A1:A2"
    sheet.merge_cells "B1:B2"
  end
end
package.serialize 'merged_cells.xlsx'

Version data entries

12 entries across 12 versions & 6 rubygems

Version Path
bonio-axlsx-2.2.3 examples/merge_cells.rb
caxlsx-3.0.2 examples/merge_cells.rb
caxlsx-3.0.1 examples/merge_cells.rb
caxlsx-3.0.0 examples/merge_cells.rb
axlsx-alt-3.0.1 examples/merge_cells.rb
axlsx-alt-3.0.0 examples/merge_cells.rb
axlsx-3.0.0.pre examples/merge_cells.rb
bonio-axlsx-2.2.2 examples/merge_cells.rb
bonio-axlsx-2.2.1 examples/merge_cells.rb
dg-axlsx-2.1.0 examples/merge_cells.rb
axlsx-2.1.0.pre examples/merge_cells.rb
l_axlsx-2.0.1 examples/merge_cells.rb