Sha256: fff1b5811513d073c64a961c80cba49646fe77e815fac43c0194983080456609

Contents?: true

Size: 772 Bytes

Versions: 38

Compression:

Stored size: 772 Bytes

Contents

#!/usr/bin/ruby -w
# -*- coding: utf-8 -*-

###############################################################################
#
# Example of creating a WriteExcel that is larger than the
# default 7MB limit.
#
# It is exactly that same as any other WriteExcel program except
# that is requires that the OLE::Storage module is installed.
#
# reverse('©'), Jan 2007, John McNamara, jmcnamara@cpan.org
#
# original written in Perl by John McNamara
# converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
#
require 'writeexcel'

workbook  = WriteExcel.new('bigfile.xls')
worksheet = workbook.add_worksheet

worksheet.set_column(0, 50, 18)

0.upto(50) do |col|
  0.upto(6000) do |row|
    worksheet.write(row, col, "Row: #{row} Col: #{col}")
  end
end

workbook.close

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
writeexcel-1.0.9 examples/bigfile.rb
writeexcel-1.0.8 examples/bigfile.rb
writeexcel-1.0.7 examples/bigfile.rb
writeexcel-1.0.6 examples/bigfile.rb
writeexcel-1.0.5 examples/bigfile.rb
writeexcel-1.0.4 examples/bigfile.rb
writeexcel-1.0.3 examples/bigfile.rb
writeexcel-1.0.2 examples/bigfile.rb
writeexcel-1.0.1 examples/bigfile.rb
writeexcel-1.0.0 examples/bigfile.rb
writeexcel-0.6.19 examples/bigfile.rb
writeexcel-0.6.18 examples/bigfile.rb
writeexcel-0.6.17 examples/bigfile.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.16/examples/bigfile.rb
writeexcel-0.6.16 examples/bigfile.rb
writeexcel-0.6.15 examples/bigfile.rb
writeexcel-0.6.14 examples/bigfile.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/bigfile.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/bigfile.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/bigfile.rb