摘要:
在.net中读Excel可以通过两种方式读取1.以数据库的方式,这种方式简单明了,推荐。参考代码如下:注意修改两个地方Data Source=C:/Book.xls指Excel文件的位置,string.Format("select * from [{0}$]", p_tagName)中p_tagName指Sheet标签页的名称//构建连接字符串stringConnStr="Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:/Book.xls;ExtendedProperties='Excel8.0;HDR=NO;I 阅读全文
![](/skins/gray/images/separator.gif)