一.引用什么库:
using System.Data;
using System.Data.Oledb;
二.怎么连接到Oledb:
string connection="Provider=Microsoft.ACE.OLEDB.16.0;" + "Data Source=" + excelPath + ";Extended Properties=‘Excel 12.0;HDR=YES;IMEX=1’;"
一.引用什么库:
using System.Data;
using System.Data.Oledb;
二.怎么连接到Oledb:
string connection="Provider=Microsoft.ACE.OLEDB.16.0;" + "Data Source=" + excelPath + ";Extended Properties=‘Excel 12.0;HDR=YES;IMEX=1’;"