1#ifndef DAAXOBJECTEXCELWRAPPER_H
2#define DAAXOBJECTEXCELWRAPPER_H
7#include "DAAxOfficeWrapperGlobal.h"
8#include "DAAxObjectExcelSheetWrapper.h"
37 void setWindowVisible(
bool on);
39 void setDisplayAlerts(
bool on);
41 bool open(
const QString& filename,
bool visible =
false,
bool displayAlerts =
false);
43 bool create(
const QString& filename,
bool visible =
false,
bool displayAlerts =
false);
47 bool saveAs(
const QString& filename);
49 QStringList getSheetsName()
const;
51 int getSheetsCount()
const;
53 bool setCurrentSheet(
int index);
54 bool setCurrentSheet(
const QString& name);
56 int indexOfSheetName(
const QString& name)
const;
58 QString getActiveSheetName()
const;
74 static DATable< QVariant > readExcelSheet(
const QString& filename,
int sheetIndex = 0, QString* errString =
nullptr);
76 static bool writeExcel(
const QString& filename,
77 const QString& sheetName,
79 bool appendLast =
false,
80 QString* errString =
nullptr);
针对excelSheet的操作封装,不对QAxObject的生命周期进行管理,确保此类不要单独保留,否则sheet析构后会引起异常
Definition DAAxObjectExcelSheetWrapper.h:14
excel操作封装
Definition DAAxObjectExcelWrapper.h:28
支持稀疏存储和各种算法的表格类
Definition DATable.hpp:26
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44