如何在不使用C#安装MS Office的情况下以编程方式读取MS Access数据库文件 [英] How to read ms access database file programmatically without installing ms office in c#

查看:391
本文介绍了如何在不使用C#安装MS Office的情况下以编程方式读取MS Access数据库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个读取ms访问数据库文件(test.accdb)的应用程序.

I have created an application which reads ms access database file (test.accdb).

当我在PC上测试该应用程序时,效果很好.

When i tested the application in my pc it worked fine.

但是当我尝试在不安装ms office 2007的情况下在另一台PC上运行我的应用程序时,它不会读取我的数据库.

But when i tried to run my application in different pc without installing ms office 2007 it does not read my database.

后来,当我安装ms Office 2007时,它对我有用.

later when i installed ms office 2007 it worked for me.

有些人没有ms office,可能有些人不知道ms office.如果他们没有ms office,则需要从超过500 mb的网站上下载.每个人都不能下载它,因为它很大,可能会限制互联网.

Some people dont have ms office may be some people dont know about ms office. If they dont have ms office they need to download it from website which is more than 500 mb. Everyone Cant download it because its very big.they could have limited internet.

我想读取数据库文件而不在客户端PC中安装ms Office 2007.

I want to read the database file without installing ms office 2007 in client pc.

有没有可以读取的代码.

Is there any code from which we can read it.

如果有人可以帮助我,将不胜感激.

There would be great appreciation if someone could help me.

预先感谢

推荐答案

如何连接到数据库?您应该能够将ODBC插入其中.不过,您需要在客户端计算机上安装 ODBC 驱动器

How do you connect to the database? You should be able to ODBC into it. You will need to install the ODBC drive on the client machines though.

这篇关于如何在不使用C#安装MS Office的情况下以编程方式读取MS Access数据库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆