Hi,

I am using ruby ruby 1.8.6 and spreadsheet (0.6.4).
I am trying to oarse an excel file.
My code is like :

    require 'rubygems'
    require 'spreadsheet'
    require 'parseexcel'
    equire 'parseexcel/parseexcel'
    require 'parseexcel/parser'

      workbook =
Spreadsheet::ParseExcel.parse("public/downloads/test.xls")
      worksheet = workbook.worksheet(0)

        worksheet.each { |row|
                puts row.at(0).to_s

        }

But it prints 'nil'. I have data in my excel file.

Could you please help me?

Thanks,
Anu
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to