简体   繁体   中英

How to open Excel 2007 (xlsx) file with CDaoDatabase

Using CDaoDatabase defined in afxdao.h, how can I open up Excel 2007 (xlsx) files? I can open up Excel 2003 (xls) files using the connection string Excel 8.0;HDR=NO;IMEX=1, anybody know how I can do this?

Thanks!

You need to use Microsoft.ACE.OLEDB.12.0 as the provider. Not sure if DAO supports that. MFC's DAO classes are deprecated .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM