文件名称:OpenExcel
-
所属分类:
- 标签属性:
- 上传时间:2014-04-21
-
文件大小:269.71kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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的基本接口,分别是:_Application,_WorkBook,_WorkSheet, Range,Font,WorkBooks,WorkSheets。点击Generated classes(即2号框)中CFont0类,在classes(即3号框)和File(即4号框)中修改其类名为CMyFont,头文件名为CMyFont.h(类名和头文件名,也可以是其他名字,由自己确定)。点击Finish完成添加-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 add
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OpenExcel/MFC列表与excel文件的通信.docx
OpenExcel/OpenExcel/CApplication.h
OpenExcel/OpenExcel/CFont0.h
OpenExcel/OpenExcel/CGlobal.h
OpenExcel/OpenExcel/CRange.h
OpenExcel/OpenExcel/CSheets.h
OpenExcel/OpenExcel/CWorkbook.h
OpenExcel/OpenExcel/CWorkbooks.h
OpenExcel/OpenExcel/CWorksheet.h
OpenExcel/OpenExcel/CWorksheets.h
OpenExcel/OpenExcel/OpenExcel.aps
OpenExcel/OpenExcel/OpenExcel.cpp
OpenExcel/OpenExcel/OpenExcel.h
OpenExcel/OpenExcel/OpenExcel.rc
OpenExcel/OpenExcel/OpenExcel.vcxproj
OpenExcel/OpenExcel/OpenExcel.vcxproj.filters
OpenExcel/OpenExcel/OpenExcel.vcxproj.user
OpenExcel/OpenExcel/OpenExcelDlg.cpp
OpenExcel/OpenExcel/OpenExcelDlg.h
OpenExcel/OpenExcel/ReadMe.txt
OpenExcel/OpenExcel/res/OpenExcel.ico
OpenExcel/OpenExcel/res/OpenExcel.rc2
OpenExcel/OpenExcel/resource.h
OpenExcel/OpenExcel/stdafx.cpp
OpenExcel/OpenExcel/stdafx.h
OpenExcel/OpenExcel/targetver.h
OpenExcel/OpenExcel.sln
OpenExcel/OpenExcel.suo
OpenExcel/说明.txt
OpenExcel/ipch/openexcel-49752cfa
OpenExcel/OpenExcel/Debug
OpenExcel/OpenExcel/res
OpenExcel/Debug
OpenExcel/ipch
OpenExcel/OpenExcel
OpenExcel
OpenExcel/OpenExcel/CApplication.h
OpenExcel/OpenExcel/CFont0.h
OpenExcel/OpenExcel/CGlobal.h
OpenExcel/OpenExcel/CRange.h
OpenExcel/OpenExcel/CSheets.h
OpenExcel/OpenExcel/CWorkbook.h
OpenExcel/OpenExcel/CWorkbooks.h
OpenExcel/OpenExcel/CWorksheet.h
OpenExcel/OpenExcel/CWorksheets.h
OpenExcel/OpenExcel/OpenExcel.aps
OpenExcel/OpenExcel/OpenExcel.cpp
OpenExcel/OpenExcel/OpenExcel.h
OpenExcel/OpenExcel/OpenExcel.rc
OpenExcel/OpenExcel/OpenExcel.vcxproj
OpenExcel/OpenExcel/OpenExcel.vcxproj.filters
OpenExcel/OpenExcel/OpenExcel.vcxproj.user
OpenExcel/OpenExcel/OpenExcelDlg.cpp
OpenExcel/OpenExcel/OpenExcelDlg.h
OpenExcel/OpenExcel/ReadMe.txt
OpenExcel/OpenExcel/res/OpenExcel.ico
OpenExcel/OpenExcel/res/OpenExcel.rc2
OpenExcel/OpenExcel/resource.h
OpenExcel/OpenExcel/stdafx.cpp
OpenExcel/OpenExcel/stdafx.h
OpenExcel/OpenExcel/targetver.h
OpenExcel/OpenExcel.sln
OpenExcel/OpenExcel.suo
OpenExcel/说明.txt
OpenExcel/ipch/openexcel-49752cfa
OpenExcel/OpenExcel/Debug
OpenExcel/OpenExcel/res
OpenExcel/Debug
OpenExcel/ipch
OpenExcel/OpenExcel
OpenExcel
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.