No commit activity in last 3 years
No release in over 3 years
Library to generate OpenDocument (ODF) Spreadsheet documents.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
Spreadsheet
===========

Library to generate OpenDocument Spreadsheet documents.

Example
=======

  sheet = Spreadsheet::Builder.new
  sheet.spreadsheet do
    sheet.table 'Time report (simple)' do
      sheet.row {
        sheet.cell 'Developing spreadsheet library'
        sheet.cell 80.0
      }
      sheet.row {
        sheet.cell 'Writing spreadsheet library documentation'
        sheet.cell 2.0
      }
    end
  
    sheet.table 'Time report (rich)' do
      sheet.column :width => '4in'
      sheet.column :width => '0.5in'
    
      sheet.header {
        sheet.row {
          sheet.cell 'Time report', :span => 2, :style => 'title'
        }
        sheet.row {
          sheet.cell 'Activity', :align => :left
          sheet.cell 'Hours'
        }
      }
    
      sheet.row {
        sheet.string_cell 'Developing spreadsheet library'
        sheet.numeric_cell 80.0
      }
      sheet.row {
        sheet.string_cell 'Writing spreadsheet library documentation'
        sheet.numeric_cell 2.0
      }
    end
  end

  File.open('time_report.ods', 'wb') { |f| f.write sheet.content! }


Copyright (c) 2009 Maxim Kulkin, released under the MIT license