Forum: Ruby on Rails WIN23OLE and file_field

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
jhn V. (Guest)
on 2007-04-12 01:45
Hi every1,

I am using WIN23OLE to open and excel file, manipulate data and then
write the results in a database. Everything works find, or at least i
thought so.
I used the file's path to open the excel file and worked

wb = xls.Workbooks.open("c:\test.xls")

... but now i am trying to accomplish the same thing using file_field in
a .rhtml page; i tried

wb = xls.Workbooks.open(params[:datafile]) and it doesn't work.

Can someone please help. Any input is greatly appreciated.

Thank you,
This topic is locked and can not be replied to.