OpenExcel
代码说明:
MFC_列表CListCtrl读写Excel文件,刚写完,亲测可用,不懂可学一下CListCtrl的用法。介绍一下:输入excel文件到列表&&输出列表到excel文件,需要1、向项目工程中添加基本的7个类,分别是:CApplication,CMyFont,CRange,CWorkBook,CWorkBooks,CWorkSheet,CWorkSheets,选择MFC Class From TypeLib,在Add Class From 中选中File,在Location中输入或者选择EXCEL.EXE(officer2007为EXCEL.EXE,officer2003为EXCEL9.OLB)的路径。然后在Interface框(即1号框)中选择操作Excel的基本接口(MFC_ list CListCtrl read and write Excel files, just finished, the pro-test is available, but not to learn about CListCtrl usage. Introduction: Enter excel file to the list & & output list to excel file, you need one, to add to the project' s seven basic categories, namely: CApplication, CMyFont, CRange, CWorkBook, CWorkBooks, CWorkSheet, CWorkSheets, select MFC Class From TypeLib, select the Add Class From File, in Location, type or select EXCEL.EXE (officer2007 as EXCEL.EXE, officer2003 as EXCEL9.OLB) path. Then in the Interface box (ie the 1st box), select operating base interface of Excel)
文件列表:
OpenExcel
.........\Debug
.........\ipch
.........\....\openexcel-49752cfa
.........\MFC列表与excel文件的通信.docx,117906,2013-06-18
.........\OpenExcel
.........\.........\CApplication.h,75350,2013-06-19
.........\.........\CFont0.h,6367,2013-06-18
.........\.........\CGlobal.h,0,2013-06-18
.........\.........\CRange.h,44670,2013-06-18
.........\.........\CSheets.h,4948,2013-06-18
.........\.........\CWorkbook.h,44443,2013-06-18
.........\.........\CWorkbooks.h,7458,2013-06-19
.........\.........\CWorksheet.h,29240,2013-06-18
.........\.........\CWorksheets.h,4980,2013-06-18
.........\.........\Debug
.........\.........\OpenExcel.aps,106120,2013-06-18
.........\.........\OpenExcel.cpp,2528,2013-06-18
.........\.........\OpenExcel.h,729,2013-06-19
.........\.........\OpenExcel.rc,11540,2013-06-18
.........\.........\OpenExcel.vcxproj,6266,2013-06-18
.........\.........\OpenExcel.vcxproj.filters,2791,2013-06-18
.........\.........\OpenExcel.vcxproj.user,143,2013-06-18
.........\.........\OpenExcelDlg.cpp,11136,2013-06-19
.........\.........\OpenExcelDlg.h,1056,2013-06-18
.........\.........\ReadMe.txt,4474,2013-06-18
.........\.........\res
.........\.........\...\OpenExcel.rc2,802,2013-06-18
.........\.........\resource.h,1640,2013-06-18
.........\.........\stdafx.cpp,211,2013-06-18
.........\.........\stdafx.h,1807,2013-06-18
.........\.........\targetver.h,352,2013-06-19
.........\OpenExcel.sln,1778,2013-06-18
.........\说明.txt,40,2013-06-18
下载说明:请别用迅雷下载,失败请重下,重下不扣分!