Sha256: 45310653bd0bc891eb63a9cef2932e01b229431a03562f27022a04095e54a28e

Contents?: true

Size: 1.01 KB

Versions: 30

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

30 entries across 30 versions & 3 rubygems

Version Path
writeexcel-1.0.1 examples/properties_jp.rb
writeexcel-1.0.0 examples/properties_jp.rb
writeexcel-0.6.19 examples/properties_jp.rb
writeexcel-0.6.18 examples/properties_jp.rb
writeexcel-0.6.17 examples/properties_jp.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.16/examples/properties_jp.rb
writeexcel-0.6.16 examples/properties_jp.rb
writeexcel-0.6.15 examples/properties_jp.rb
writeexcel-0.6.14 examples/properties_jp.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/properties_jp.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/properties_jp.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/properties_jp.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/properties_jp.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/properties_jp.rb
writeexcel-0.6.13 examples/properties_jp.rb
ricardoo27-writeexcel-0.6.12.2 examples/properties_jp.rb
ricardoo27-writeexcel-0.6.12.1 examples/properties_jp.rb
writeexcel-0.6.12 examples/properties_jp.rb
writeexcel-0.6.11 examples/properties_jp.rb
writeexcel-0.6.10 examples/properties_jp.rb