Rails 从 Excel 导入问题

发布于 2024-07-26 03:39:31 字数 326 浏览 11 评论 0原文

我们使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

就是爱搞怪 2024-08-02 03:39:31

IMO 这与 Rails 无关。
这更有可能是 VBA 错误。

IMO this has nothing to do with rails.
It is more likely a VBA bug.

酒解孤独 2024-08-02 03:39:31

这是权限/身份的问题。

查了很多论坛,终于找到解决办法了!

在“组件服务”=>“计算机”=>“我的电脑”=>右键单击“应用程序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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文