在Asp.net 3.5中导入Excel文件时出错 [英] Error in Importing an Excel File in Asp.net 3.5

查看:56
本文介绍了在Asp.net 3.5中导入Excel文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导入一个excel文件并将其存储在数据库表中.
我正在使用代码oleDBCon.Open()打开连接,但无法正常工作.

web.config文件中,我已使用[Provider = SQLOLEDB.1]作为数据提供程序.


请帮帮我.

I am trying to import an excel file and store it in database table.
I am using the code oleDBCon.Open() to open the connection but its not working.

In the web.config file I have used [Provider=SQLOLEDB.1]as data provider.


Please help me out.

推荐答案

MSDN上有一篇很好的文章可以解决您的目的.请看一下:

http://support.microsoft.com/kb/321686 [
There is a very nice artlicle on MSDN to solve your purpose. Please have a look:

http://support.microsoft.com/kb/321686[^]


这篇关于在Asp.net 3.5中导入Excel文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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