Sha256: 33a46ba7a9272563a46f62298c7ca50581799099892c5db796d35dbc943d4ef4
Contents?: true
Size: 554 Bytes
Versions: 15
Compression:
Stored size: 554 Bytes
Contents
#!/usr/bin/env ruby -w -s # -*- coding: utf-8 -*- $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" #```ruby require 'axlsx' p = Axlsx::Package.new p.workbook.add_worksheet(:name => 'Excel 2010 comments') do |sheet| sheet.add_row ['Cell with visible comment'] sheet.add_row sheet.add_row sheet.add_row ['Cell with hidden comment'] sheet.add_comment :ref => 'A1', :author => 'XXX', :text => 'Visibile' sheet.add_comment :ref => 'A4', :author => 'XXX', :text => 'Hidden', :visible => false end p.serialize('excel_2010_comment_test.xlsx')
Version data entries
15 entries across 15 versions & 6 rubygems