Rails 从 Excel 导入问题
我们使用 Ruby on Rails 代码从 Excel 工作表导入数据,我们使用一个警报,询问我们是否上传数据并附加到现有数据(MySQL 数据库)并将其显示在 Flex 3 中设计的网格中,或者替换旧数据与新数据。 但我们收到这个错误:
Error in Importing excel files Open
OLE error code:800A03EC in Microsoft Office Excel
Unable to get the Open property of the Workbooks class
HRESULT error code:0x80020009
We are using Ruby on Rails code to import the data from an Excel sheet, we use an alert where it asks whether we upload the data and append to existing data (MySQL database) and display it in a grid designed in Flex 3, or replace the old data with new data. But we are getting this error:
Error in Importing excel files Open
OLE error code:800A03EC in Microsoft Office Excel
Unable to get the Open property of the Workbooks class
HRESULT error code:0x80020009
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IMO 这与 Rails 无关。
这更有可能是 VBA 错误。
IMO this has nothing to do with rails.
It is more likely a VBA bug.
这是权限/身份的问题。
查了很多论坛,终于找到解决办法了!
在“组件服务”=>“计算机”=>“我的电脑”=>右键单击“应用程序Microsoft Excel”,然后单击属性; 在“身份”选项卡中,将用户设置为“交互式用户”。
我不是这方面的专家,所以我不能 100% 确定这不会导致任何其他问题。
It's a matter of permissions/identities.
I searched on many forums and finally I was able to find a workaround!
In "Components services” => “Computers” => “My Computer” => right-click on “Application Microsoft Excel" then click Properties; in the "Identity" tab, set the user to "Interactive user".
I'm not an expert on this matter so I'm not 100% sure this won't cause any other problem.