eclipse 从eclipse打开excel文件时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2847149/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:44:37  来源:igfitidea点击:

Getting error on opening excel file from eclipse

eclipseexceleclipse-3.4

提问by Ravisha

I am getting following error on

我收到以下错误

Cannot create the in-place editor

This is probably because there is no OLE editor registered against the type of file you were trying to open. Failed to create Ole Client. result = -2147417851

无法创建就地编辑器

这可能是因为没有针对您尝试打开的文件类型注册的 OLE 编辑器。未能创建 Ole 客户端。结果 = -2147417851

I have MS office 2007,and the excel file is stored as "save as 2003 version".

我有 MS Office 2007,并且 excel 文件存储为“另存为 2003 版本”。

回答by iondiode

I'm using 3.5 so things could be different. Window->Preferences->General->Editors->File Associations.

我使用的是 3.5,所以事情可能会有所不同。窗口->首选项->常规->编辑器->文件关联。

Add *.xls and add Associated Editor (from this window you can select external programs to open with)

添加 *.xls 并添加关联编辑器(从此窗口中您可以选择要打开的外部程序)

I think you shouldbe able to open the excel file inside and eclipse editor, but it looks like the OLE is not working on your system for some reason.

我认为您应该能够打开里面的 excel 文件和 eclipse 编辑器,但看起来 OLE 出于某种原因无法在您的系统上运行。

回答by sivarama krishna yaram

first check the system editor available or not. if available right click on xls file and click on open with system editor. if not available follow bellow steps.

首先检查系统编辑器是否可用。如果可用,右键单击 xls 文件,然后单击使用系统编辑器打开。如果不可用,请按照以下步骤操作。

eclipse-->help-->Install new software-->search for editor and download and restart the eclipse. After restart the eclipse right click on xls file and click on open with system editor.

eclipse-->help-->Install new software-->搜索editor,下载并重启eclipse。重启 eclipse 后,右键单击 xls 文件,然后单击使用系统编辑器打开。