zdavatz / spreadsheet

The Ruby Spreadsheet by ywesee GmbH
http://spreadsheet.ch
GNU General Public License v3.0
1.13k stars 240 forks source link

Cannot write empty excel file #202

Closed lutusu closed 7 years ago

lutusu commented 7 years ago

book = Spreadsheet::Workbook.new book.write 'filename' The code above will cause a nil TypeError raised by trying to assign nil to index of focused sheet.

zdavatz commented 7 years ago

sample code and sample file please.