这里贴的代码是读取本地文件系统中的excel
//读取EXCEL的方法 (用范围区域读取数据)
private static DataTable GetExcelTableByOleDB(string excelFilePath)
{
//Excel连接
OleDbConnection conn = null;
DataTable dataTable = null;
try
{
//数据表
DataSet ds = new DataSet();
//获取文件扩展名
string extension = System.IO.Path.GetExtension(excelFilePath);


1957

被折叠的 条评论
为什么被折叠?



