Ruby Spreadsheet 合并单元格方法
原文出处:http://rubyforge.org/forum/message.php?msg_id=64873
book = Spreadsheet::Workbook.newsheet = book.create_worksheet :name => "Test Sheet"bold_heading = Spreadsheet::Format.new(:weight => :bold, :size => 14, :align => :merge)data = "A TEST HEADING"test_row = sheet.row(0)5.times do |i|test_row.set_format(i,bold_heading)endtest_row[0] = databook.write '/Users/sam/tmp/testing.xls'