Sha256: 242d8fb9ff1eda16e1ade9c26251939489bac9ea42203460aee973de4b36c9ec

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 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

5 entries across 5 versions & 1 rubygems

Version Path
writeexcel-0.5.0 examples/properties_jp.rb
writeexcel-0.4.3 examples/properties_jp.rb
writeexcel-0.4.2 examples/properties_jp.rb
writeexcel-0.4.1 examples/properties_jp.rb
writeexcel-0.4.0 examples/properties_jp.rb