excelcf.h

来自「一个写二进制文件的方式导出excel电子表格文档」· C头文件 代码 · 共 34 行

H
34
字号
// ExcelCF.h: interface for the ExcelCF class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_EXCELCF_H__67DE4925_5A24_4AF6_B71E_0BC9A514BE58__INCLUDED_)
#define AFX_EXCELCF_H__67DE4925_5A24_4AF6_B71E_0BC9A514BE58__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class ExcelCF  
{
public:
	ExcelCF();
	virtual ~ExcelCF();
	int	 CreateExcelFile(CString strFileName);
	void InsertTableColNum(int m_nCount);
	void InsertColName(CString strColname,int nCol,int Width);

	void InsertColums(int* nColLength,int nColNum,LPTSTR* arrpsz );
	void InsertColums(CUIntArray& nIntArray,int nColNum,CStringArray&  strColums);
	void InsertStringColValue(CString strValue,int nCol,int nRow);
	void InsertDoubleColValue(double dValue,int nCol,int nRow);
	void InsertIntgerColValue(int nValue,int nCol,int nRow);
	void ExcelClose();
	void ExceLDimension();

	FILE* m_Filehandle;
	int   m_nCount;
};

#endif // !defined(AFX_EXCELCF_H__67DE4925_5A24_4AF6_B71E_0BC9A514BE58__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?