Sha256: b6bd3b709a2fa11d7a853b6a9d70aaae4aa5ee197189b2f446946350d1b91326

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

#!/usr/bin/ruby -w

###############################################################################
#
# 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

6 entries across 6 versions & 1 rubygems

Version Path
writeexcel-0.3.5 examples/bigfile.rb
writeexcel-0.3.4 examples/bigfile.rb
writeexcel-0.3.3 examples/bigfile.rb
writeexcel-0.3.2 examples/bigfile.rb
writeexcel-0.3.1 examples/bigfile.rb
writeexcel-0.3.0 examples/bigfile.rb