summaryrefslogtreecommitdiffhomepage
path: root/examples/underline.rb
blob: ccd1b3948890ddd884a66525cfc7f730a489402c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'axlsx'
p = Axlsx::Package.new
p.workbook do |wb|
  wb.styles do |s|
    no_underline = s.add_style :sz => 10, :b => true, :u => false, :alignment => { :horizontal=> :right }
    wb.add_worksheet(:name => 'wunderlinen') do |sheet|
      sheet.add_row %w{a b c really?}, :style => no_underline
    end
  end
end
p.serialize 'no_underline.xlsx'