From: hisham Houdev Date: 2008-02-06T18:53:53+09:00 Subject: Re: How to open an xls file Thomas Preymesser wrote: > On 05/02/2008, Houdev Houdev wrote: >> >> Hi, >> I have a blocking problem and I really need urgent help. >> i'm very new in ruby and i find it great... >> I woudl like to open an xls file, but I get the following error : > > > Are you sure, your .xls file is really an excel file? How do you have > created this file? > Can you post the code how you have used the parseexcel gem? > > -Thomas > > > > -- > Thomas Preymesser > thopre@gmail.com > thomas@thopre.com > B端ro: 030 - 830 353 88 > mobil: 0176 - 75 03 03 04 > Privat: 030 - 49 78 37 06 > http://thopre.wordpress.com/ > http://www.thopre.com/ Hi and thanks fo ryoru answer, I download the xls file from a website as follows : Net::HTTP.start("www.casablanca-bourse.com") { |http| resp = http.get("/cgi/ASP/Marche_Central/TelechargerDonnees.asp") open("Donnes_Bourse.xls", "wb") { |file| file.write(resp.body) } } Is there something wrong with this code ? Thanks for help -- Posted via http://www.ruby-forum.com/.