Support to add any number of sheets to excel

This commit is contained in:
2023-09-20 00:58:01 +02:00
parent 925f71166c
commit 20a6ebab7c
4 changed files with 38 additions and 8 deletions

View File

@@ -21,8 +21,8 @@ namespace platform {
};
class ReportExcel : public ReportBase {
public:
explicit ReportExcel(json data_);
virtual ~ReportExcel() { closeFile(); };
explicit ReportExcel(json data_, lxw_workbook* workbook);
lxw_workbook* getWorkbook();
private:
void writeString(int row, int col, const string& text, const string& style = "");
void writeInt(int row, int col, const int number, const string& style = "");