在没有驱动程序或excel interop的情况下阅读excel

编程入门 行业动态 更新时间:2024-10-10 12:16:28
本文介绍了在没有驱动程序或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

推荐答案

我们对(商业)组件Aspose.Cells [ ^ ]. 您只需要将单个DLL文件与您的应用程序一起xcopy部署给客户;不需要Office组件或其他任何组件. 他们有免费的试用版,因此您可以检查一下是否适合您. 干杯 Uwe We were very satisfied with the (commercial) component Aspose.Cells[^]. You simple have to xcopy-deploy the single DLL file together with your application to your customer; no Office components or anything else is required. They have free trial versions, so you can check, whether this is right for you. Cheers Uwe

更多推荐

在没有驱动程序或excel interop的情况下阅读excel

本文发布于:2023-11-11 05:00:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1577442.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:驱动程序   情况下   excel   interop

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!