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.

28 lines
763 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "GlobalDefine.h"
#include "excel.h"
class CExcelMgr
{
public:
CExcelMgr(void);
~CExcelMgr(void);
bool CreatExcelFile();
void ShowExcelFile();
void SetCellTxt(int Row,int Col,CString txt,bool bBold = false);
void InsertPicture(int Row1,int Col1,int Row2,int Col2,CString FilePath);
CString GetCellIdxStr(int Row,int Col);
private:
private:
bool m_bCreateOk;//是否成功创建了Excel 文件
_Application m_app; //先创建一个_Application类用_Application来创建一个Excel应用程序接口
Workbooks m_books; //工作薄集合
_Workbook m_book; //当前操作的工作薄
Worksheets m_sheets; //工作表集合
_Worksheet m_sheet; //当前操作的工作表
};