在ROR中使用Spreadsheet问题,请教!

在执行到 book = Spreadsheet.open user.excel.path 报 OLE2 signature is invalid
user.excel.path的路径是:"C:/test/PaperclipTestSecond/public/users/excels/12/test.xlsx"

字面是说spreadsheet不能解析你所提供的号称是[color=red]excel格式[/color]的文件
所以,看看你这个test.xlsx是不是生成的格式正确
2. 看看你自己用excel生成一个文件放那,spreadsheet能不能打开

test.xlsx这个文件有问题,你重新建个文件,把内容拷进去,然后再open试试,或者存为xls格式的