Sha256: ff109b42a33baedc106852990e34919f8fceb25172ac70ad8921b78b15f93eff
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
#!/usr/bin/ruby -w ############################################################################## # # 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 bp =1 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
6 entries across 6 versions & 1 rubygems