資源簡介
vc 通過com操作xls,包括圖表,打印(代碼中注釋掉了,有描述)吧,我忘掉了.

代碼片段和文件信息
//?333.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“333.h“
#include?“333Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy333App
BEGIN_MESSAGE_MAP(CMy333App?CWinApp)
//{{AFX_MSG_MAP(CMy333App)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMy333App?construction
CMy333App::CMy333App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy333App?object
CMy333App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy333App?initialization
BOOL?CMy333App::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CMy333Dlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????20764??2009-05-01?01:33??xls\333.aps
?????文件???????1089??2009-05-04?10:12??xls\333.clw
?????文件???????2043??2009-04-10?23:31??xls\333.cpp
?????文件???????4224??2009-04-11?17:44??xls\333.dsp
?????文件????????531??2009-04-10?23:31??xls\333.dsw
?????文件???????1301??2009-04-10?23:31??xls\333.h
?????文件?????353280??2009-05-04?10:12??xls\333.ncb
?????文件??????54784??2009-05-04?10:12??xls\333.opt
?????文件????????240??2009-05-04?10:12??xls\333.plg
?????文件????????252??2009-05-04?10:12??xls\333.positions
?????文件???????5217??2009-04-30?16:28??xls\333.rc
?????文件??????19056??2009-05-04?09:58??xls\333Dlg.cpp
?????文件???????1407??2009-04-11?02:25??xls\333Dlg.h
?????文件???????4480??2009-04-11?17:43??xls\cyberarticle.cpp
?????文件???????1551??2009-04-11?17:43??xls\cyberarticle.h
?????文件????4178944??2009-04-11?03:25??xls\Debug\333.bsc
?????文件??????????0??2009-04-11?03:22??xls\Debug\333.sbr
?????文件?????207675??2009-04-11?03:28??xls\Debug\333Dlg.sbr
?????文件??????????0??2009-04-11?03:22??xls\Debug\excel.sbr
?????文件??????33878??2009-04-14?13:03??xls\Debug\sss.jpg
?????文件????1374989??2009-04-11?03:22??xls\Debug\StdAfx.sbr
?????文件?????293668??2009-05-01?01:53??xls\excel.cpp
?????文件??????78093??2009-05-01?01:53??xls\excel.h
?????文件???????3531??2009-04-10?23:31??xls\ReadMe.txt
?????文件???????1078??2009-04-10?23:31??xls\res\333.ico
?????文件????????395??2009-04-10?23:31??xls\res\333.rc2
????..A.SH.??????3072??2009-04-11?02:19??xls\res\Thumbs.db
?????文件????????819??2009-04-30?16:14??xls\resource.h
?????文件????????205??2009-04-10?23:31??xls\StdAfx.cpp
?????文件???????1054??2009-04-10?23:31??xls\StdAfx.h
............此處省略6個文件信息
評論
共有 條評論