Sha256: af440e5d0a9439071495f03e6268f99c9c60a619ff89051bffe1f824a50834ec

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

require "rubygems"
require "surpass"

book = Workbook.new
ws = book.add_sheet('Hey, Dude')

(6...80).each do |i|
    fnt = Font.new
    fnt.height = i*20
    style = StyleFormat.new
    style.font = fnt
    ws.write(1, i, 'Test')
    ws.set_column_width(i, i)
end

book.save(__FILE__.gsub(/rb$/, "xls"))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
surpass-0.0.6 examples/col_width.rb
surpass-0.0.3 examples/col_width.rb