Sha256: 6c691d7b36a3bc38839eddcb10f7ddc73baf3b80fc873179af64147eacb93df5
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
#!/usr/bin/ruby -w # -*- coding: utf-8 -*- ############################################################################## # # An example of adding document properties to a WriteExcel file. # # reverse('©'), August 2008, John McNamara, jmcnamara@cpan.org # # original written in Perl by John McNamara # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp # require 'rubygems' require 'writeexcel' workbook = WriteExcel.new('properties_jp.xls') worksheet = workbook.add_worksheet workbook.set_properties( :title => 'スプレッドシートの作成例', :subject => 'ファイルのプロパティをセット', :author => '中村英夫', :manager => 'John McNamara', :company => 'Rubygem', :category => 'エクセルファイル', :keywords => 'エクセル プロパティ UTF-8', :comments => 'Rubygem writeexcelで作成' ) worksheet.set_column('A:A', 50) worksheet.write('A1', 'メニューのファイル(F)-プロパティ(I)を見てください。') workbook.close
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
writeexcel-1.0.4 | examples/properties_jp.rb |
writeexcel-1.0.3 | examples/properties_jp.rb |
writeexcel-1.0.2 | examples/properties_jp.rb |