Description: MFC_ list CListCtrl read and write Excel files, just finished, pro-test is available, do not know can learn about CListCtrl usage. Introduction: input excel file to the list && output list to excel file, you need an add basic seven categories in the project, namely: CApplication, CMyFont, CRange, CWorkBook, CWorkBooks, CWorkSheet, CWorkSheets, select MFC Class From TypeLib, select the Add Class From the File, enter or select EXCEL.EXE in Location (officer2007 as EXCEL.EXE, officer2003 as EXCEL9.OLB) path. And select Options in Excel Interface box (ie the 1st box) basic interface, namely: _Application, _WorkBook, _WorkSheet, Range, Font, WorkBooks, WorkSheets. Click the Generated classes (ie the 2nd box) CFont0 class, modify its kind in classes (ie the 3rd frame) and File (ie the 4th box) named CMyFont, header file called CMyFont.h (the class name and the name of the header file , other names may be determined by their own). Click Finish to a
To Search:
File list (Check if you may need any files):
OpenExcel\MFC列表与excel文件的通信.docx
.........\OpenExcel\CApplication.h
.........\.........\CFont0.h
.........\.........\CGlobal.h
.........\.........\CRange.h
.........\.........\CSheets.h
.........\.........\CWorkbook.h
.........\.........\CWorkbooks.h
.........\.........\CWorksheet.h
.........\.........\CWorksheets.h
.........\.........\OpenExcel.aps
.........\.........\OpenExcel.cpp
.........\.........\OpenExcel.h
.........\.........\OpenExcel.rc
.........\.........\OpenExcel.vcxproj
.........\.........\OpenExcel.vcxproj.filters
.........\.........\OpenExcel.vcxproj.user
.........\.........\OpenExcelDlg.cpp
.........\.........\OpenExcelDlg.h
.........\.........\ReadMe.txt
.........\.........\res\OpenExcel.ico
.........\.........\...\OpenExcel.rc2
.........\.........\resource.h
.........\.........\stdafx.cpp
.........\.........\stdafx.h
.........\.........\targetver.h
.........\OpenExcel.sln
.........\OpenExcel.suo
.........\说明.txt
.........\ipch\openexcel-49752cfa
.........\OpenExcel\Debug
.........\.........\res
.........\Debug
.........\ipch
.........\OpenExcel
OpenExcel