How To Use OleDb To Create Excel Database

前端 未结 4 1275
[愿得一人]
[愿得一人] 2020-12-18 16:49

My task is to take an Access Database and create an Excel file, but I can not seem to CREATE the Excel file that OleDb will use.

The Excel file name

4条回答
  •  佛祖请我去吃肉
    2020-12-18 17:24

    To enable read write on the file you can use the attribute : Mode

    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=EXCELFILENAME;Mode=ReadWrite;Extended Properties='Excel 12.0 Macro;HDR=YES;'
    

提交回复
热议问题