Sha256: 87950b35840967a16997132477686dc4ae977409ab0ae73dadbbf35ad91d54ee
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- ############################################################################## # # An example of adding document properties to a Excel::Writer::XLSX file. # # reverse('©'), August 2008, John McNamara, jmcnamara@cpan.org # convert to ruby by Hideo NAKAMURA, nakamura.hideo@gmail.com # require 'write_xlsx' workbook = WriteXLSX.new('properties.xlsx') worksheet = workbook.add_worksheet workbook.set_properties( :title => 'This is an example spreadsheet', :subject => 'With document properties', :author => 'John McNamara', :manager => 'Dr. Heinz Doofenshmirtz', :company => 'of Wolves', :category => 'Example spreadsheets', :keywords => 'Sample, Example, Properties', :comments => 'Created with Perl and Excel::Writer::XLSX', :status => 'Quo' ) worksheet.set_column('A:A', 70) worksheet.write('A1', "Select 'Office Button -> Prepare -> Properties' to see the file properties.") workbook.close
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
write_xlsx-1.10.0 | examples/properties.rb |
write_xlsx-1.09.5 | examples/properties.rb |