System.Data.OleDb.OleDbException: Could not find installable ISAM

后端 未结 3 1350
悲哀的现实
悲哀的现实 2020-12-17 23:20

I have scoured the net, and found many people asking this, yet none have fixed my answer.

I have a Connection Class, and a Method that uses that Class in a page.

3条回答
  •  自闭症患者
    2020-12-18 00:02

    please "Extended Properties" put it in ' '.

    That is, like the following statement:

    string connStr = String.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=pricelist.xlsx;Extended Properties='Excel 12.0 Xml;HDR=YES'")

提交回复
热议问题