C++中操作Excel
使用CSpreadSheet类:
http://www.codeproject.com/KB/database/cspreadsheet.aspx
作者列出了该类的一些使用限制:
- Requires MFC.
- May or may not support unicode. (didn't check it out)
- Uses ODBC to read and write to Excel file, thus will have the limitations of ODBC driver. (I am not sure whatever limitation does the ODBC driver has)
- Must have header row in Excel file and every column of the header row must be unique. (because class is treating Excel file as a database)
- Cannot delete a sheet from Excel file. Can only delete contents of that sheet
- Cell values are treated as a string, regardless of their format in Excel.
posted on 2011-04-19 17:54 Joshua Leung 阅读(475) 评论(0) 编辑 收藏 举报