Hi,
I need to create a excel sheet(.xls or .xlsx).
My Code:
if File.exists?("test.xls")
puts "File EXISTS"
-----my code----
else
File.open(fileToTest, File::WRONLY|File::CREAT|File::EXCL)
puts "-------FILE CREATED--------"
----my code----
end
It creates an excel file(test.xls), but when I try to open the file I
get an alert box as shown in the attachment.
I working on Windows 7, MS Office 2007
Thanks
Attachments:
http://www.ruby-forum.com/attachment/6783/excel.png
--
Posted via http://www.ruby-forum.com/.