Sha256: 3ce4f8214033dd705697506e75b1174d8bb48937038cc58edeeabff1e4dbaca1

Contents?: true

Size: 727 Bytes

Versions: 38

Compression:

Stored size: 727 Bytes

Contents

#!/usr/bin/ruby -w
# -*- coding: utf-8 -*-

###############################################################################
#
# This example demonstrates writing cell comments.
#
# A cell comment is indicated in Excel by a small red triangle in the upper
# right-hand corner of the cell.
#
# For more advanced comment options see comments2.pl.
#
# reverse('©'), November 2005, 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("comments1.xls")
worksheet = workbook.add_worksheet

worksheet.write('A1', 'Hello')
worksheet.write_comment('A1', 'This is a comment')

workbook.close

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
writeexcel-1.0.9 examples/comments1.rb
writeexcel-1.0.8 examples/comments1.rb
writeexcel-1.0.7 examples/comments1.rb
writeexcel-1.0.6 examples/comments1.rb
writeexcel-1.0.5 examples/comments1.rb
writeexcel-1.0.4 examples/comments1.rb
writeexcel-1.0.3 examples/comments1.rb
writeexcel-1.0.2 examples/comments1.rb
writeexcel-1.0.1 examples/comments1.rb
writeexcel-1.0.0 examples/comments1.rb
writeexcel-0.6.19 examples/comments1.rb
writeexcel-0.6.18 examples/comments1.rb
writeexcel-0.6.17 examples/comments1.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.16/examples/comments1.rb
writeexcel-0.6.16 examples/comments1.rb
writeexcel-0.6.15 examples/comments1.rb
writeexcel-0.6.14 examples/comments1.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/comments1.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/comments1.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/examples/comments1.rb