Location:
![](/images/right.gif)
Search - CDatabase excel
Search list
Description: 想要通过ODBC直接读、写Excel表格文件,首先,应确保ODBC中已安装有Excel表格文件的驱动"MICROSOFT EXCEL DRIVER (*.XLS)"。然后,可根据下面步骤进行: 1. 在StdAfx.h文件中加入: #include #include 2. 通过ODBC直接创建Excel文件(暂定文件名:Demo.xls) //创建并写入Excel文件 void CRWExcel::WriteToExcel() { CDatabase database; CString sDriver = "MICROSOFT EXCEL DRIVER (*.XLS)"; // Excel安装驱动 CString sExcelFile = "c:\\demo.xls"; // 要建立的Excel文件 CString sSql;
Platform: |
Size: 2926 |
Author: lijie189 |
Hits:
Description: 利用VC实现Excel文件的读写,利用了CDatabase类操作-To read and write Excel files using VC to achieve
Platform: |
Size: 30720 |
Author: liucaijiao |
Hits:
Description: 基于CDatabase类,通过执行SQL语句读取xls文件各字段到列表组建中。-Based CDatabase class, through the implementation of the SQL statement to read xls file to the list established in the field.
Platform: |
Size: 3507200 |
Author: gaofeng |
Hits:
Description: 使用MFC自带的CDatabase通过ODBC驱动访问、操作Excel的例子-By using the MFC ODBC driver that comes with CDatabase access, manipulate Excel examples
Platform: |
Size: 6144 |
Author: 温志平 |
Hits: