You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
#include <afxdb.h>
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CExcelMgr
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CExcelMgr(void);
|
|
|
|
|
~CExcelMgr(void);
|
|
|
|
|
void CreatDataBaseTable(CString &Path,int ColNum);
|
|
|
|
|
void CloseDataBase();
|
|
|
|
|
void ExportListToExcel(CListCtrl* pList);
|
|
|
|
|
void InsertNullItem(int n);
|
|
|
|
|
void InsertStringVec(vector<CString> &StrVec);
|
|
|
|
|
private:
|
|
|
|
|
BOOL MakeSurePathExists( CString &Path,bool FilenameIncluded);
|
|
|
|
|
BOOL GetDefaultXlsFileName(CString &Path,CString& sExcelFile);
|
|
|
|
|
CString GetExcelDriver();
|
|
|
|
|
CString GetTableItemName();
|
|
|
|
|
private:
|
|
|
|
|
CDatabase m_Database;//<2F><><EFBFBD>ݿ<EFBFBD>
|
|
|
|
|
int m_ColNum;//<2F>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|