interop的情况下阅读excel

interop的情况下阅读excel

本文介绍了在没有驱动程序或excel interop的情况下阅读excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在阅读excel时遇到问题.

我已按照以下步骤使用以下步骤来读取excel:

1)使用Microsoft.JET.oledb阅读excel,如果安装了驱动程序,则可以正常工作.
2)使用excel interop读取excel,如果开发人员计算机和客户端计算机都安装了相同版本的Microsoft Office,则此方法可以正常工作.

现在我的问题是某些客户端安装了(相同/其他)办公室,或者(已经/没有)Microsoft.JET.oledb

如果不满足任何条件,我的申请将失败.
是否还有其他其他方法可以读取excel文件,而不依赖于驱动程序或Office版本.

请提出针对此问题的解决方案.

问候,

Jagannath G

Hi All,

I am facing a problem for reading excel.

I have used following steps for reading excel as given below:

1) Read an excel using Microsoft.JET.oledb, this works fine if drivers are installed.
2) Read an excel using excel interop, this works fine if both developer machine and client machine as the same version of Microsoft Office installed.

Now my problem is some client have the (same/other) office installed or (has/not has) Microsoft.JET.oledb

My application will fail if any one in the condition are not satisfied.
Is there any other alternate ways to read excel file which is not dependent on driver or office version.

Please suggest a solution for this problem.

Regards,

Jagannath G

推荐答案


这篇关于在没有驱动程序或excel interop的情况下阅读excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 12:44