Problem with parsing excel file using spreadsheet

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs