文件名称:vc 读取execl 可以区分日期 时间
文件大小:59KB
文件格式:RAR
更新时间:2013-05-31 05:05:27
vc 读取execl execl
//变量定义 _Application app; Workbooks books; _Workbook book; Sheets sheets; _Worksheet sheet; Range range; Range iCell; LPDISPATCH lpDisp; COleVariant vResult; COleVariant covTrue((short)TRUE), covFalse((short)FALSE), covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR); //创建Excel服务器(启动Excel) if(!app.CreateDispatch("Excel.Application",NULL)) { AfxMessageBox("启动Excel服务器失败!"); return ; } this->m_CsProgress.SetPos(1);//进度指示 app.SetVisible(false); //使Excel可见 app.SetUserControl(TRUE); //允许其它用户控制Excel books.AttachDispatch(app.GetWorkbooks()); lpDisp = books.Open(this->m_XLS_PathName,covOptional,covOptional,covOptional,covOptional,
【文件预览】:
ExcelToTbe
----ReadMe.txt(4KB)
----StdAfx.h(1KB)
----ExcelToTbeDlg.h(2KB)
----Release()
----res()
--------WDLEDDoc.ico(4KB)
--------ExcelToTbe.ico(1KB)
--------ExcelToTbe.rc2(402B)
--------ExcelToTbe11.ico(1KB)
--------Thumbs.db(9KB)
----ExcelToTbe.aps(36KB)
----excel.cpp(171KB)
----ExcelToTbe.plg(256B)
----Debug()
----resource.h(964B)
----ExcelToTbe.cpp(2KB)
----ExcelToTbe.opt(49KB)
----ExcelToTbe.dsw(528B)
----ExcelToTbe.rc(6KB)
----ExcelToTbe.clw(1KB)
----ExcelToTbeDlg.cpp(12KB)
----StdAfx.cpp(212B)
----ExcelToTbe.h(1KB)
----excel.h(46KB)
----ExcelToTbe.dsp(4KB)