Allowing VB.NET app to convert Excel Files to Datatable

后端 未结 2 1685
我在风中等你
我在风中等你 2021-01-22 08:46

My VB.NET app currently allows me to convert CSV files to a datatable thanks to the code provided by David in this question I posted: Previous Question

Now I am trying t

2条回答
  •  孤独总比滥情好
    2021-01-22 09:24

    Use can use the following connection string for .xlsx file. I have used it and working fine.

    P_FIle = ( File Name with path )
    
    P_Con_Str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & P_File & ";Extended Properties=""Excel 12.0 XML;HDR=Yes;"""
    

提交回复
热议问题