資源簡介
使用QT操作Excel和word的類
Excel 只支持讀取操作
Wrod 支持向指定書簽處插入文字,圖片和表格
代碼片段和文件信息
#include?“excel_operator.h“
#include?
#include?
#include?
ExcelOperator::ExcelOperator()
{
??excel?????=?NULL;?
??workbooks?=?NULL;???
??workbook??=?NULL;???
??worksheet?=?NULL;?
??excel_file????=?““;?
??row_count?????=?0;??
??column_count??=?0;
??start_row?????=?0;??
??start_column??=?0;
??open_flag?????=?false;
??OleInitialize(0);
??
}
ExcelOperator::ExcelOperator(QString?excel_path)
{
??excel?????=?NULL;?
??workbooks?=?NULL;???
??workbook??=?NULL;???
??worksheet?=?NULL;?
??excel_file????=?excel_path;?
??row_count?????=?0;??
??column_count??=?0;
??start_row?????=?0;??
??start_column??=?0;
??open_flag?????=?false;
??OleInitialize(0);
}
ExcelOperator::~ExcelOperator()
{
??if?(open_flag)
????close();
??OleUnin
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3416??2016-05-31?15:26??QtOffice\excel_operator.cpp
?????文件???????1803??2016-05-31?15:26??QtOffice\excel_operator.h
?????文件?????????91??2016-05-31?15:28??QtOffice\readme.txt
?????文件???????6801??2016-04-15?13:42??QtOffice\word_operator.cpp
?????文件???????3015??2016-05-31?15:26??QtOffice\word_operator.h
?????目錄??????????0??2020-03-11?23:03??QtOffice
-----------?---------??----------?-----??----
????????????????15126????????????????????6
- 上一篇:Qt工控ui制作
- 下一篇:Qt Creator快速入門_第三版源碼
評論
共有 條評論