使用asp.net读取excel表的特定单元格 [英] read a specific cell of excel sheet using asp.net

查看:67
本文介绍了使用asp.net读取excel表的特定单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张excel表我想从那张表中读取一个没有标题的单元格,只使用asp.net的值。

有人可以告诉我怎么做。

提前谢谢

i have an excel sheet i want to read a cell from that sheet which has no heading just have the values using asp.net.
can somebody please tell me how to do it.
thanks in advance

推荐答案

有吨Net中的示例,仅有两个区别:

1)连接字符串

There are tons of examples in Net, and two differences only:
1) connection string
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Book1.xls;Extended Properties="Excel 8.0;HDR=NO;"



2)命令文本


2) command text

SELECT * FROM [Sheet


A1 ]





如何使用ADO .NET使用Visual Basic .NET在Excel工作簿中检索和修改记录 [ ^ ] - 强烈推荐!

从.NET应用程序访问Microsoft Office数据 [ ^ ]

ADO提供程序属性和设置 [ ^ ]

使用ADO.NET处理Excel文件 [ ^ ]

如何阅读使用OLEDB的Excel文件 [ ^ ]



更多信息: CP知识库 [ ^ ]



How To Use ADO.NET to Retrieve and Modify Records in an Excel Workbook With Visual Basic .NET[^] - strongly recommended!
Accessing Microsoft Office Data from .NET Applications[^]
ADO Provider Properties and Settings[^]
Using ADO.NET to work with Excel files[^]
How to read from an Excel file using OLEDB [^]

More on: CP Knowledge Base[^]


这篇关于使用asp.net读取excel表的特定单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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