Excel 2010电子表格的连接字符串。 [英] Connection string to Excel 2010 spreadsheet.

查看:61
本文介绍了Excel 2010电子表格的连接字符串。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



寻找正确的连接字符串格式,使用

连接到Excel电子表格。



当前代码如下:

 字符串 sConnectionString = < span class =code-string>  Provider = Microsoft.ACE.OLEDB.12.0; Data Source = C:\\Users\\ andrew。 c \\Documents \\Leave.xlsx;扩展属性= Excel  12  0  Xml; HDR = YES  ;  



干杯



Andrew C

解决方案

以下是 Excel的连接字符串 [ ^ ]

Hello,

Looking for the correct connection string format to use
to connect to an excel spreadsheet.

Current code is below:

String sConnectionString = " Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\andrew.c\\Documents\\Leave.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES"; 


Cheers

Andrew C

解决方案

Here are lists of Connection strings for Excel[^]


这篇关于Excel 2010电子表格的连接字符串。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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